[sources] Re-structure sources so that the HTTP server does not depend on brotli

This commit is contained in:
Ciprian Dorin Craciun 2018-11-11 18:44:30 +02:00
parent 8caf1eefff
commit bb91e438a8
10 changed files with 26 additions and 11 deletions

17
.x-run
View file

@ -119,6 +119,21 @@
<< go / build / debug
"${X_RUN}" ':: go / build / archiver / debug' "${@}"
"${X_RUN}" ':: go / build / server / debug' "${@}"
exit -- 0
!!
<< go / build / release
"${X_RUN}" ':: go / build / archiver / release' "${@}"
"${X_RUN}" ':: go / build / server / release' "${@}"
exit -- 0
!!
<< publish << publish
test "${#}" -eq 0 test "${#}" -eq 0
printf -- '[ii] publishing to `https://data.volution.ro/ciprian/ad5264afc6e27e46b5d71837552cb3fd`...\n' >&2 printf -- '[ii] publishing to `https://data.volution.ro/ciprian/ad5264afc6e27e46b5d71837552cb3fd`...\n' >&2
@ -129,8 +144,6 @@
<< go / dependencies / update << go / dependencies / update
test "${#}" -eq 0 test "${#}" -eq 0
exec -- "${X_RUN[@]}" ':: go / tool' get -v -d -- ./sources/... exec -- "${X_RUN[@]}" ':: go / tool' get -v -d -- ./sources/...

View file

@ -19,7 +19,8 @@ import "sort"
// import "github.com/colinmarc/cdb" // import "github.com/colinmarc/cdb"
import cdb "github.com/cipriancraciun/go-cdb-lib" import cdb "github.com/cipriancraciun/go-cdb-lib"
import . "../lib" import . "../lib/common"
import . "../lib/archiver"

View file

@ -17,7 +17,8 @@ import "time"
// import "github.com/colinmarc/cdb" // import "github.com/colinmarc/cdb"
import cdb "github.com/cipriancraciun/go-cdb-lib" import cdb "github.com/cipriancraciun/go-cdb-lib"
import . "../lib" import . "../lib/common"
import . "../lib/server"

View file

@ -1,6 +1,6 @@
package lib package archiver
import "bytes" import "bytes"

View file

@ -1,6 +1,6 @@
package lib package common
import "log" import "log"

View file

@ -1,6 +1,6 @@
package lib package common
import "flag" import "flag"

View file

@ -1,6 +1,6 @@
package lib package common
import "bytes" import "bytes"

View file

@ -1,6 +1,6 @@
package lib package common

View file

@ -1,6 +1,6 @@
package lib package common

View file

@ -1,6 +1,6 @@
package lib package server
import "encoding/base64" import "encoding/base64"