database: move to internal/
This commit is contained in:
parent
73cd736cd2
commit
8689a2f135
|
@ -2,3 +2,4 @@
|
||||||
.env
|
.env
|
||||||
var
|
var
|
||||||
bin
|
bin
|
||||||
|
.#*
|
|
@ -13,7 +13,7 @@ import (
|
||||||
|
|
||||||
"go.uber.org/atomic"
|
"go.uber.org/atomic"
|
||||||
|
|
||||||
"git.xeserv.us/xena/route/database"
|
"git.xeserv.us/xena/route/internal/database"
|
||||||
"git.xeserv.us/xena/route/lib/routecrypto"
|
"git.xeserv.us/xena/route/lib/routecrypto"
|
||||||
proto "git.xeserv.us/xena/route/proto"
|
proto "git.xeserv.us/xena/route/proto"
|
||||||
"github.com/Xe/ln"
|
"github.com/Xe/ln"
|
||||||
|
|
3
mage.go
3
mage.go
|
@ -48,9 +48,6 @@ func Build() {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
err := os.Mkdir("bin", 0777)
|
|
||||||
qod.ANE(err)
|
|
||||||
|
|
||||||
d := filepath.Join(wd, "./bin")
|
d := filepath.Join(wd, "./bin")
|
||||||
|
|
||||||
for _, pkg := range []string{"helloserver", "httpagent", "route", "routed"} {
|
for _, pkg := range []string{"helloserver", "httpagent", "route", "routed"} {
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"git.xeserv.us/xena/route/database"
|
"git.xeserv.us/xena/route/internal/database"
|
||||||
"github.com/Xe/ln"
|
"github.com/Xe/ln"
|
||||||
"google.golang.org/grpc"
|
"google.golang.org/grpc"
|
||||||
"google.golang.org/grpc/codes"
|
"google.golang.org/grpc/codes"
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"net/http/httputil"
|
"net/http/httputil"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.xeserv.us/xena/route/database"
|
"git.xeserv.us/xena/route/internal/database"
|
||||||
"git.xeserv.us/xena/route/lib/tun2"
|
"git.xeserv.us/xena/route/lib/tun2"
|
||||||
proto "git.xeserv.us/xena/route/proto"
|
proto "git.xeserv.us/xena/route/proto"
|
||||||
"github.com/mtneug/pkg/ulid"
|
"github.com/mtneug/pkg/ulid"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package server
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"git.xeserv.us/xena/route/database"
|
"git.xeserv.us/xena/route/internal/database"
|
||||||
"git.xeserv.us/xena/route/lib/tun2"
|
"git.xeserv.us/xena/route/lib/tun2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue