refactor(tvix/nar-bridge): move pkg/server to pkg/http
This is only dealing with the HTTP interface. Change-Id: I011b624fd9f11ea96231b92fea1166c118a219f2 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9535 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
parent
0353108e99
commit
28d1b9c01d
7 changed files with 8 additions and 8 deletions
|
@ -12,7 +12,7 @@ import (
|
|||
"google.golang.org/grpc/credentials/insecure"
|
||||
|
||||
castorev1pb "code.tvl.fyi/tvix/castore/protos"
|
||||
"code.tvl.fyi/tvix/nar-bridge/pkg/server"
|
||||
narBridgeHttp "code.tvl.fyi/tvix/nar-bridge/pkg/http"
|
||||
storev1pb "code.tvl.fyi/tvix/store/protos"
|
||||
"github.com/sirupsen/logrus"
|
||||
log "github.com/sirupsen/logrus"
|
||||
|
@ -47,7 +47,7 @@ func main() {
|
|||
}
|
||||
defer conn.Close()
|
||||
|
||||
s := server.New(
|
||||
s := narBridgeHttp.New(
|
||||
castorev1pb.NewDirectoryServiceClient(conn),
|
||||
castorev1pb.NewBlobServiceClient(conn),
|
||||
storev1pb.NewPathInfoServiceClient(conn),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package http
|
||||
|
||||
import (
|
||||
"bytes"
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package http
|
||||
|
||||
import (
|
||||
"bufio"
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package http
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package http
|
||||
|
||||
import (
|
||||
"net/http"
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package http
|
||||
|
||||
import (
|
||||
"context"
|
|
@ -1,4 +1,4 @@
|
|||
package server
|
||||
package http
|
||||
|
||||
import (
|
||||
"fmt"
|
Loading…
Reference in a new issue