[sources] Re-structure sources so that the HTTP server does not depend on brotli
This commit is contained in:
parent
8caf1eefff
commit
bb91e438a8
10 changed files with 26 additions and 11 deletions
17
.x-run
17
.x-run
|
@ -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
|
||||
test "${#}" -eq 0
|
||||
printf -- '[ii] publishing to `https://data.volution.ro/ciprian/ad5264afc6e27e46b5d71837552cb3fd`...\n' >&2
|
||||
|
@ -129,8 +144,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
<< go / dependencies / update
|
||||
test "${#}" -eq 0
|
||||
exec -- "${X_RUN[@]}" ':: go / tool' get -v -d -- ./sources/...
|
||||
|
|
|
@ -19,7 +19,8 @@ import "sort"
|
|||
// import "github.com/colinmarc/cdb"
|
||||
import cdb "github.com/cipriancraciun/go-cdb-lib"
|
||||
|
||||
import . "../lib"
|
||||
import . "../lib/common"
|
||||
import . "../lib/archiver"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -17,7 +17,8 @@ import "time"
|
|||
// import "github.com/colinmarc/cdb"
|
||||
import cdb "github.com/cipriancraciun/go-cdb-lib"
|
||||
|
||||
import . "../lib"
|
||||
import . "../lib/common"
|
||||
import . "../lib/server"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package archiver
|
||||
|
||||
|
||||
import "bytes"
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package common
|
||||
|
||||
|
||||
import "log"
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package common
|
||||
|
||||
|
||||
import "flag"
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package common
|
||||
|
||||
|
||||
import "bytes"
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package common
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package common
|
||||
|
||||
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
|
||||
package lib
|
||||
package server
|
||||
|
||||
|
||||
import "encoding/base64"
|
Loading…
Reference in a new issue