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" "crypto/tls"
"flag" "flag"
"git.xeserv.us/xena/route/lib/tun2" "git.xeserv.us/xena/route/internal/tun2"
"github.com/Xe/ln" "github.com/Xe/ln"
"github.com/facebookgo/flagenv" "github.com/facebookgo/flagenv"
) )

View File

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

View File

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

View File

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

View File

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

View File

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