move everything in lib/ to internal/

This commit is contained in:
Cadey Ratio 2017-10-01 08:23:08 -07:00
parent 9b56d5f1ce
commit babbdca699
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
11 changed files with 7 additions and 8 deletions

View File

@ -5,7 +5,7 @@ import (
"crypto/tls"
"flag"
"git.xeserv.us/xena/route/lib/tun2"
"git.xeserv.us/xena/route/internal/tun2"
"github.com/Xe/ln"
"github.com/facebookgo/flagenv"
)

View File

@ -1,7 +1,7 @@
package server
import (
"git.xeserv.us/xena/route/lib/tun2"
"git.xeserv.us/xena/route/internal/tun2"
proto "git.xeserv.us/xena/route/proto"
"github.com/Xe/ln"
"golang.org/x/net/context"

View File

@ -1,7 +1,7 @@
package server
import (
"git.xeserv.us/xena/route/lib/elfs"
"git.xeserv.us/xena/route/internal/elfs"
proto "git.xeserv.us/xena/route/proto"
"github.com/Xe/ln"
"golang.org/x/net/context"

View File

@ -9,10 +9,9 @@ import (
"time"
"git.xeserv.us/xena/route/internal/database"
"git.xeserv.us/xena/route/lib/tun2"
"git.xeserv.us/xena/route/internal/tun2"
proto "git.xeserv.us/xena/route/proto"
"github.com/mtneug/pkg/ulid"
"github.com/oxtoacart/bpool"
"golang.org/x/crypto/acme/autocert"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
@ -141,7 +140,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
Director: s.Director,
Transport: s.ts,
FlushInterval: 1 * time.Second,
BufferPool: bpool.NewBytePool(256, 4096),
//BufferPool: bpool.NewBytePool(256, 4096),
}
rp.ServeHTTP(w, r)

View File

@ -4,7 +4,7 @@ import (
"context"
"git.xeserv.us/xena/route/internal/database"
"git.xeserv.us/xena/route/lib/tun2"
"git.xeserv.us/xena/route/internal/tun2"
)
type storageWrapper struct {

View File

@ -9,7 +9,7 @@ import (
"os"
"time"
"git.xeserv.us/xena/route/lib/tun2"
"git.xeserv.us/xena/route/internal/tun2"
"github.com/Xe/ln"
)