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:
Florian Klink 2023-10-03 14:49:18 +03:00 committed by flokli
parent 0353108e99
commit 28d1b9c01d
7 changed files with 8 additions and 8 deletions

View file

@ -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),

View file

@ -1,4 +1,4 @@
package server
package http
import (
"bytes"

View file

@ -1,4 +1,4 @@
package server
package http
import (
"bufio"

View file

@ -1,4 +1,4 @@
package server
package http
import (
"context"

View file

@ -1,4 +1,4 @@
package server
package http
import (
"net/http"

View file

@ -1,4 +1,4 @@
package server
package http
import (
"context"

View file

@ -1,4 +1,4 @@
package server
package http
import (
"fmt"