From f1cfd52a915dd848a419c774ded953d93ee53cf4 Mon Sep 17 00:00:00 2001 From: Tim Beatham Date: Wed, 25 Oct 2023 18:36:13 +0100 Subject: [PATCH] Cleaning up reposistory --- go.mod | 9 ++++++--- pkg/grpc/ctrlserver/syncservice.proto | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index e21ec86..83508b7 100644 --- a/go.mod +++ b/go.mod @@ -4,20 +4,24 @@ go 1.21.1 require ( github.com/akamensky/argparse v1.4.0 + github.com/automerge/automerge-go v0.0.0-20230903201930-b80ce8aadbb9 + github.com/golang-jwt/jwt/v5 v5.0.0 golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6 google.golang.org/grpc v1.58.1 google.golang.org/protobuf v1.31.0 + gopkg.in/yaml.v3 v3.0.1 ) require ( - github.com/automerge/automerge-go v0.0.0-20230903201930-b80ce8aadbb9 // indirect - github.com/golang-jwt/jwt/v5 v5.0.0 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/josharian/native v1.1.0 // indirect github.com/mdlayher/genetlink v1.3.2 // indirect github.com/mdlayher/netlink v1.7.2 // indirect github.com/mdlayher/socket v0.5.0 // indirect + github.com/sirupsen/logrus v1.9.3 // indirect + github.com/vishvananda/netlink v1.1.0 // indirect + github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df // indirect golang.org/x/crypto v0.13.0 // indirect golang.org/x/net v0.15.0 // indirect golang.org/x/sync v0.3.0 // indirect @@ -25,5 +29,4 @@ require ( golang.org/x/text v0.13.0 // indirect golang.zx2c4.com/wireguard v0.0.0-20230704135630-469159ecf7d1 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/pkg/grpc/ctrlserver/syncservice.proto b/pkg/grpc/ctrlserver/syncservice.proto index 9362928..b08faf1 100644 --- a/pkg/grpc/ctrlserver/syncservice.proto +++ b/pkg/grpc/ctrlserver/syncservice.proto @@ -5,7 +5,7 @@ option go_package = "pkg/rpc"; service SyncService { rpc GetConf(GetConfRequest) returns (GetConfReply) {} - rpc SyncMesh(SyncMeshRequest) returns (SyncMeshReply) {} + rpc SyncMesh(stream SyncMeshRequest) returns (stream SyncMeshReply) {} } message GetConfRequest { @@ -23,4 +23,5 @@ message SyncMeshRequest { message SyncMeshReply { bool success = 1; + bytes changes = 2; } \ No newline at end of file