Skip to content

Commit

Permalink
add grpc wire
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Jul 9, 2024
1 parent b5d7825 commit 1b23262
Show file tree
Hide file tree
Showing 10 changed files with 467 additions and 5 deletions.
1 change: 1 addition & 0 deletions proto/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ package proto
//go:generate protoc --go_out=./topo --go_opt=paths=source_relative ./topo.proto
//go:generate protoc --go_out=./ceos --go_opt=paths=source_relative ./ceos.proto
//go:generate protoc --go_out=./controller --go-grpc_out=./controller --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative ./controller.proto
//go:generate protoc --go_out=./wire --go-grpc_out=./wire --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative ./wire.proto
//go:generate protoc --go_out=./event --go-grpc_out=./event --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative ./event.proto
1 change: 1 addition & 0 deletions proto/topo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum Vendor {
OPENCONFIG = 10;
ALPINE = 11;
DRIVENETS = 12;
EXTERNAL = 13;
}

// Node is a single container inside the topology
Expand Down
14 changes: 9 additions & 5 deletions proto/topo/topo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions proto/wire.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";

package wire;

option go_package = "github.com/openconfig/kne/proto/wire";

// Wire service definition.
service Wire {
rpc Transmit(stream Packet) returns (stream Packet);
}

message Packet {
bytes data = 1;
}
162 changes: 162 additions & 0 deletions proto/wire/wire.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

137 changes: 137 additions & 0 deletions proto/wire/wire_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added wire/client/client
Binary file not shown.
Loading

0 comments on commit 1b23262

Please sign in to comment.