Skip to content
Snippets Groups Projects

V.0.1.0 Codename Threadbare

Closed Ghost User requested to merge v.0.1.0-codename-threadbare into master
9 files
+ 610
379
Compare changes
  • Side-by-side
  • Inline
Files
9
+ 493
120
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// source: cliInterface/gosdnCLI.proto
// protoc-gen-go v1.25.0-devel
// protoc v3.12.4
// source: gosdnCLI.proto
package gosdn
import (
context "context"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
@@ -37,7 +42,7 @@ type HelloRequest struct {
func (x *HelloRequest) Reset() {
*x = HelloRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[0]
mi := &file_gosdnCLI_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -50,7 +55,7 @@ func (x *HelloRequest) String() string {
func (*HelloRequest) ProtoMessage() {}
func (x *HelloRequest) ProtoReflect() protoreflect.Message {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[0]
mi := &file_gosdnCLI_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -63,7 +68,7 @@ func (x *HelloRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) Descriptor() ([]byte, []int) {
return file_cliInterface_gosdnCLI_proto_rawDescGZIP(), []int{0}
return file_gosdnCLI_proto_rawDescGZIP(), []int{0}
}
func (x *HelloRequest) GetName() string {
@@ -86,7 +91,7 @@ type HelloReply struct {
func (x *HelloReply) Reset() {
*x = HelloReply{}
if protoimpl.UnsafeEnabled {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[1]
mi := &file_gosdnCLI_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -99,7 +104,7 @@ func (x *HelloReply) String() string {
func (*HelloReply) ProtoMessage() {}
func (x *HelloReply) ProtoReflect() protoreflect.Message {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[1]
mi := &file_gosdnCLI_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -112,7 +117,7 @@ func (x *HelloReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) Descriptor() ([]byte, []int) {
return file_cliInterface_gosdnCLI_proto_rawDescGZIP(), []int{1}
return file_gosdnCLI_proto_rawDescGZIP(), []int{1}
}
func (x *HelloReply) GetMessage() string {
@@ -141,7 +146,7 @@ type ShutdownRequest struct {
func (x *ShutdownRequest) Reset() {
*x = ShutdownRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[2]
mi := &file_gosdnCLI_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -154,7 +159,7 @@ func (x *ShutdownRequest) String() string {
func (*ShutdownRequest) ProtoMessage() {}
func (x *ShutdownRequest) ProtoReflect() protoreflect.Message {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[2]
mi := &file_gosdnCLI_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -167,7 +172,7 @@ func (x *ShutdownRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.
func (*ShutdownRequest) Descriptor() ([]byte, []int) {
return file_cliInterface_gosdnCLI_proto_rawDescGZIP(), []int{2}
return file_gosdnCLI_proto_rawDescGZIP(), []int{2}
}
func (x *ShutdownRequest) GetName() string {
@@ -189,7 +194,7 @@ type ShutdownReply struct {
func (x *ShutdownReply) Reset() {
*x = ShutdownReply{}
if protoimpl.UnsafeEnabled {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[3]
mi := &file_gosdnCLI_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -202,7 +207,7 @@ func (x *ShutdownReply) String() string {
func (*ShutdownReply) ProtoMessage() {}
func (x *ShutdownReply) ProtoReflect() protoreflect.Message {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[3]
mi := &file_gosdnCLI_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -215,7 +220,7 @@ func (x *ShutdownReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use ShutdownReply.ProtoReflect.Descriptor instead.
func (*ShutdownReply) Descriptor() ([]byte, []int) {
return file_cliInterface_gosdnCLI_proto_rawDescGZIP(), []int{3}
return file_gosdnCLI_proto_rawDescGZIP(), []int{3}
}
func (x *ShutdownReply) GetMessage() string {
@@ -237,7 +242,7 @@ type TAPIRequest struct {
func (x *TAPIRequest) Reset() {
*x = TAPIRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[4]
mi := &file_gosdnCLI_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -250,7 +255,7 @@ func (x *TAPIRequest) String() string {
func (*TAPIRequest) ProtoMessage() {}
func (x *TAPIRequest) ProtoReflect() protoreflect.Message {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[4]
mi := &file_gosdnCLI_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -263,7 +268,7 @@ func (x *TAPIRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use TAPIRequest.ProtoReflect.Descriptor instead.
func (*TAPIRequest) Descriptor() ([]byte, []int) {
return file_cliInterface_gosdnCLI_proto_rawDescGZIP(), []int{4}
return file_gosdnCLI_proto_rawDescGZIP(), []int{4}
}
func (x *TAPIRequest) GetName() string {
@@ -285,7 +290,7 @@ type TAPIReply struct {
func (x *TAPIReply) Reset() {
*x = TAPIReply{}
if protoimpl.UnsafeEnabled {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[5]
mi := &file_gosdnCLI_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -298,7 +303,7 @@ func (x *TAPIReply) String() string {
func (*TAPIReply) ProtoMessage() {}
func (x *TAPIReply) ProtoReflect() protoreflect.Message {
mi := &file_cliInterface_gosdnCLI_proto_msgTypes[5]
mi := &file_gosdnCLI_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -311,7 +316,7 @@ func (x *TAPIReply) ProtoReflect() protoreflect.Message {
// Deprecated: Use TAPIReply.ProtoReflect.Descriptor instead.
func (*TAPIReply) Descriptor() ([]byte, []int) {
return file_cliInterface_gosdnCLI_proto_rawDescGZIP(), []int{5}
return file_gosdnCLI_proto_rawDescGZIP(), []int{5}
}
func (x *TAPIReply) GetMessage() string {
@@ -321,105 +326,159 @@ func (x *TAPIReply) GetMessage() string {
return ""
}
var File_cliInterface_gosdnCLI_proto protoreflect.FileDescriptor
var file_cliInterface_gosdnCLI_proto_rawDesc = []byte{
0x0a, 0x1b, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2f, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x43, 0x4c, 0x49, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63,
0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x22, 0x22, 0x0a, 0x0c, 0x48,
0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
0x44, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a,
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x6f, 0x53, 0x44, 0x4e,
0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x53, 0x44,
0x4e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x25, 0x0a, 0x0f, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77,
0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x0d,
0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a,
0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x21, 0x0a, 0x0b, 0x54, 0x41, 0x50, 0x49, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x25, 0x0a, 0x09, 0x54, 0x41,
0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x32, 0xea, 0x02, 0x0a, 0x07, 0x47, 0x72, 0x70, 0x63, 0x43, 0x6c, 0x69, 0x12, 0x42, 0x0a,
0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x1a, 0x2e, 0x63, 0x6c, 0x69, 0x49,
0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72,
0x66, 0x61, 0x63, 0x65, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
0x00, 0x12, 0x48, 0x0a, 0x08, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x1d, 0x2e,
0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x68, 0x75,
0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x63,
0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x53, 0x68, 0x75, 0x74,
0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0b, 0x54,
0x41, 0x50, 0x49, 0x47, 0x65, 0x74, 0x45, 0x64, 0x67, 0x65, 0x12, 0x19, 0x2e, 0x63, 0x6c, 0x69,
0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72,
0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
0x12, 0x47, 0x0a, 0x0f, 0x54, 0x41, 0x50, 0x49, 0x47, 0x65, 0x74, 0x45, 0x64, 0x67, 0x65, 0x4e,
0x6f, 0x64, 0x65, 0x12, 0x19, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
0x63, 0x65, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17,
0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, 0x41,
0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x0b, 0x54, 0x41, 0x50,
0x49, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x19, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e,
0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61,
0x63, 0x65, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x50,
0x0a, 0x1e, 0x64, 0x65, 0x2e, 0x68, 0x2d, 0x64, 0x61, 0x2e, 0x66, 0x62, 0x69, 0x2e, 0x67, 0x6f,
0x73, 0x64, 0x6e, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65,
0x42, 0x0c, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x50, 0x01,
0x5a, 0x1e, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x66, 0x62, 0x69, 0x2e, 0x68, 0x2d, 0x64,
0x61, 0x2e, 0x64, 0x65, 0x2f, 0x63, 0x6f, 0x63, 0x73, 0x6e, 0x2f, 0x67, 0x6f, 0x73, 0x64, 0x6e,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
// The response message containing a string with a goSDN log
type LogReply struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Log string `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
}
func (x *LogReply) Reset() {
*x = LogReply{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdnCLI_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogReply) ProtoMessage() {}
func (x *LogReply) ProtoReflect() protoreflect.Message {
mi := &file_gosdnCLI_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogReply.ProtoReflect.Descriptor instead.
func (*LogReply) Descriptor() ([]byte, []int) {
return file_gosdnCLI_proto_rawDescGZIP(), []int{6}
}
func (x *LogReply) GetLog() string {
if x != nil {
return x.Log
}
return ""
}
var File_gosdnCLI_proto protoreflect.FileDescriptor
var file_gosdnCLI_proto_rawDesc = []byte{
0x0a, 0x0e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x43, 0x4c, 0x49, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x05, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x44, 0x0a, 0x0a, 0x48, 0x65, 0x6c, 0x6c,
0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x12, 0x1c, 0x0a, 0x09, 0x67, 0x6f, 0x53, 0x44, 0x4e, 0x49, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x09, 0x67, 0x6f, 0x53, 0x44, 0x4e, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x25,
0x0a, 0x0f, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x29, 0x0a, 0x0d, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77,
0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x22, 0x21, 0x0a, 0x0b, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x22, 0x25, 0x0a, 0x09, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79,
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x1c, 0x0a, 0x08, 0x4c, 0x6f,
0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6c, 0x6f, 0x67, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x03, 0x6c, 0x6f, 0x67, 0x32, 0xe4, 0x02, 0x0a, 0x07, 0x47, 0x72, 0x70,
0x63, 0x43, 0x6c, 0x69, 0x12, 0x34, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f,
0x12, 0x13, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x48, 0x65,
0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3a, 0x0a, 0x08, 0x53, 0x68,
0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x16, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53,
0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52,
0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x3e, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x4c, 0x6f, 0x67, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
0x79, 0x1a, 0x0f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x70,
0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x35, 0x0a, 0x0b, 0x54, 0x41, 0x50, 0x49, 0x47, 0x65,
0x74, 0x45, 0x64, 0x67, 0x65, 0x12, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x41,
0x50, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x39, 0x0a,
0x0f, 0x54, 0x41, 0x50, 0x49, 0x47, 0x65, 0x74, 0x45, 0x64, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65,
0x12, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x41, 0x50,
0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x35, 0x0a, 0x0b, 0x54, 0x41, 0x50, 0x49,
0x47, 0x65, 0x74, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x12, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x41, 0x50, 0x49, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42,
0x50, 0x0a, 0x1e, 0x64, 0x65, 0x2e, 0x68, 0x2d, 0x64, 0x61, 0x2e, 0x66, 0x62, 0x69, 0x2e, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63,
0x65, 0x42, 0x0c, 0x63, 0x6c, 0x69, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x50,
0x01, 0x5a, 0x1e, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x66, 0x62, 0x69, 0x2e, 0x68, 0x2d,
0x64, 0x61, 0x2e, 0x64, 0x65, 0x2f, 0x63, 0x6f, 0x63, 0x73, 0x6e, 0x2f, 0x67, 0x6f, 0x73, 0x64,
0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cliInterface_gosdnCLI_proto_rawDescOnce sync.Once
file_cliInterface_gosdnCLI_proto_rawDescData = file_cliInterface_gosdnCLI_proto_rawDesc
file_gosdnCLI_proto_rawDescOnce sync.Once
file_gosdnCLI_proto_rawDescData = file_gosdnCLI_proto_rawDesc
)
func file_cliInterface_gosdnCLI_proto_rawDescGZIP() []byte {
file_cliInterface_gosdnCLI_proto_rawDescOnce.Do(func() {
file_cliInterface_gosdnCLI_proto_rawDescData = protoimpl.X.CompressGZIP(file_cliInterface_gosdnCLI_proto_rawDescData)
func file_gosdnCLI_proto_rawDescGZIP() []byte {
file_gosdnCLI_proto_rawDescOnce.Do(func() {
file_gosdnCLI_proto_rawDescData = protoimpl.X.CompressGZIP(file_gosdnCLI_proto_rawDescData)
})
return file_cliInterface_gosdnCLI_proto_rawDescData
}
var file_cliInterface_gosdnCLI_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_cliInterface_gosdnCLI_proto_goTypes = []interface{}{
(*HelloRequest)(nil), // 0: cliInterface.HelloRequest
(*HelloReply)(nil), // 1: cliInterface.HelloReply
(*ShutdownRequest)(nil), // 2: cliInterface.ShutdownRequest
(*ShutdownReply)(nil), // 3: cliInterface.ShutdownReply
(*TAPIRequest)(nil), // 4: cliInterface.TAPIRequest
(*TAPIReply)(nil), // 5: cliInterface.TAPIReply
}
var file_cliInterface_gosdnCLI_proto_depIdxs = []int32{
0, // 0: cliInterface.GrpcCli.SayHello:input_type -> cliInterface.HelloRequest
2, // 1: cliInterface.GrpcCli.Shutdown:input_type -> cliInterface.ShutdownRequest
4, // 2: cliInterface.GrpcCli.TAPIGetEdge:input_type -> cliInterface.TAPIRequest
4, // 3: cliInterface.GrpcCli.TAPIGetEdgeNode:input_type -> cliInterface.TAPIRequest
4, // 4: cliInterface.GrpcCli.TAPIGetLink:input_type -> cliInterface.TAPIRequest
1, // 5: cliInterface.GrpcCli.SayHello:output_type -> cliInterface.HelloReply
3, // 6: cliInterface.GrpcCli.Shutdown:output_type -> cliInterface.ShutdownReply
5, // 7: cliInterface.GrpcCli.TAPIGetEdge:output_type -> cliInterface.TAPIReply
5, // 8: cliInterface.GrpcCli.TAPIGetEdgeNode:output_type -> cliInterface.TAPIReply
5, // 9: cliInterface.GrpcCli.TAPIGetLink:output_type -> cliInterface.TAPIReply
5, // [5:10] is the sub-list for method output_type
0, // [0:5] is the sub-list for method input_type
return file_gosdnCLI_proto_rawDescData
}
var file_gosdnCLI_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_gosdnCLI_proto_goTypes = []interface{}{
(*HelloRequest)(nil), // 0: proto.HelloRequest
(*HelloReply)(nil), // 1: proto.HelloReply
(*ShutdownRequest)(nil), // 2: proto.ShutdownRequest
(*ShutdownReply)(nil), // 3: proto.ShutdownReply
(*TAPIRequest)(nil), // 4: proto.TAPIRequest
(*TAPIReply)(nil), // 5: proto.TAPIReply
(*LogReply)(nil), // 6: proto.LogReply
(*empty.Empty)(nil), // 7: google.protobuf.Empty
}
var file_gosdnCLI_proto_depIdxs = []int32{
0, // 0: proto.GrpcCli.SayHello:input_type -> proto.HelloRequest
2, // 1: proto.GrpcCli.Shutdown:input_type -> proto.ShutdownRequest
7, // 2: proto.GrpcCli.CreateLogStream:input_type -> google.protobuf.Empty
4, // 3: proto.GrpcCli.TAPIGetEdge:input_type -> proto.TAPIRequest
4, // 4: proto.GrpcCli.TAPIGetEdgeNode:input_type -> proto.TAPIRequest
4, // 5: proto.GrpcCli.TAPIGetLink:input_type -> proto.TAPIRequest
1, // 6: proto.GrpcCli.SayHello:output_type -> proto.HelloReply
3, // 7: proto.GrpcCli.Shutdown:output_type -> proto.ShutdownReply
6, // 8: proto.GrpcCli.CreateLogStream:output_type -> proto.LogReply
5, // 9: proto.GrpcCli.TAPIGetEdge:output_type -> proto.TAPIReply
5, // 10: proto.GrpcCli.TAPIGetEdgeNode:output_type -> proto.TAPIReply
5, // 11: proto.GrpcCli.TAPIGetLink:output_type -> proto.TAPIReply
6, // [6:12] is the sub-list for method output_type
0, // [0:6] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cliInterface_gosdnCLI_proto_init() }
func file_cliInterface_gosdnCLI_proto_init() {
if File_cliInterface_gosdnCLI_proto != nil {
func init() { file_gosdnCLI_proto_init() }
func file_gosdnCLI_proto_init() {
if File_gosdnCLI_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cliInterface_gosdnCLI_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_gosdnCLI_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HelloRequest); i {
case 0:
return &v.state
@@ -431,7 +490,7 @@ func file_cliInterface_gosdnCLI_proto_init() {
return nil
}
}
file_cliInterface_gosdnCLI_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_gosdnCLI_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HelloReply); i {
case 0:
return &v.state
@@ -443,7 +502,7 @@ func file_cliInterface_gosdnCLI_proto_init() {
return nil
}
}
file_cliInterface_gosdnCLI_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_gosdnCLI_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ShutdownRequest); i {
case 0:
return &v.state
@@ -455,7 +514,7 @@ func file_cliInterface_gosdnCLI_proto_init() {
return nil
}
}
file_cliInterface_gosdnCLI_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_gosdnCLI_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ShutdownReply); i {
case 0:
return &v.state
@@ -467,7 +526,7 @@ func file_cliInterface_gosdnCLI_proto_init() {
return nil
}
}
file_cliInterface_gosdnCLI_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_gosdnCLI_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TAPIRequest); i {
case 0:
return &v.state
@@ -479,7 +538,7 @@ func file_cliInterface_gosdnCLI_proto_init() {
return nil
}
}
file_cliInterface_gosdnCLI_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_gosdnCLI_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*TAPIReply); i {
case 0:
return &v.state
@@ -491,23 +550,337 @@ func file_cliInterface_gosdnCLI_proto_init() {
return nil
}
}
file_gosdnCLI_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LogReply); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cliInterface_gosdnCLI_proto_rawDesc,
RawDescriptor: file_gosdnCLI_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumMessages: 7,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_cliInterface_gosdnCLI_proto_goTypes,
DependencyIndexes: file_cliInterface_gosdnCLI_proto_depIdxs,
MessageInfos: file_cliInterface_gosdnCLI_proto_msgTypes,
GoTypes: file_gosdnCLI_proto_goTypes,
DependencyIndexes: file_gosdnCLI_proto_depIdxs,
MessageInfos: file_gosdnCLI_proto_msgTypes,
}.Build()
File_cliInterface_gosdnCLI_proto = out.File
file_cliInterface_gosdnCLI_proto_rawDesc = nil
file_cliInterface_gosdnCLI_proto_goTypes = nil
file_cliInterface_gosdnCLI_proto_depIdxs = nil
File_gosdnCLI_proto = out.File
file_gosdnCLI_proto_rawDesc = nil
file_gosdnCLI_proto_goTypes = nil
file_gosdnCLI_proto_depIdxs = nil
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// GrpcCliClient is the client API for GrpcCli service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type GrpcCliClient interface {
// Sends a greeting
SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error)
// Shutdown goSDN
Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownReply, error)
// creates a stream to receive goSDN logs
CreateLogStream(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (GrpcCli_CreateLogStreamClient, error)
// By now solely TAPI specific calls can be issued from the grpc-cli
// TAPIGetEdge
TAPIGetEdge(ctx context.Context, in *TAPIRequest, opts ...grpc.CallOption) (*TAPIReply, error)
//TAPIGetEdgeNode
TAPIGetEdgeNode(ctx context.Context, in *TAPIRequest, opts ...grpc.CallOption) (*TAPIReply, error)
// TAPIGetLink
TAPIGetLink(ctx context.Context, in *TAPIRequest, opts ...grpc.CallOption) (*TAPIReply, error)
}
type grpcCliClient struct {
cc grpc.ClientConnInterface
}
func NewGrpcCliClient(cc grpc.ClientConnInterface) GrpcCliClient {
return &grpcCliClient{cc}
}
func (c *grpcCliClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
out := new(HelloReply)
err := c.cc.Invoke(ctx, "/proto.GrpcCli/SayHello", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *grpcCliClient) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownReply, error) {
out := new(ShutdownReply)
err := c.cc.Invoke(ctx, "/proto.GrpcCli/Shutdown", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *grpcCliClient) CreateLogStream(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (GrpcCli_CreateLogStreamClient, error) {
stream, err := c.cc.NewStream(ctx, &_GrpcCli_serviceDesc.Streams[0], "/proto.GrpcCli/CreateLogStream", opts...)
if err != nil {
return nil, err
}
x := &grpcCliCreateLogStreamClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type GrpcCli_CreateLogStreamClient interface {
Recv() (*LogReply, error)
grpc.ClientStream
}
type grpcCliCreateLogStreamClient struct {
grpc.ClientStream
}
func (x *grpcCliCreateLogStreamClient) Recv() (*LogReply, error) {
m := new(LogReply)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *grpcCliClient) TAPIGetEdge(ctx context.Context, in *TAPIRequest, opts ...grpc.CallOption) (*TAPIReply, error) {
out := new(TAPIReply)
err := c.cc.Invoke(ctx, "/proto.GrpcCli/TAPIGetEdge", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *grpcCliClient) TAPIGetEdgeNode(ctx context.Context, in *TAPIRequest, opts ...grpc.CallOption) (*TAPIReply, error) {
out := new(TAPIReply)
err := c.cc.Invoke(ctx, "/proto.GrpcCli/TAPIGetEdgeNode", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *grpcCliClient) TAPIGetLink(ctx context.Context, in *TAPIRequest, opts ...grpc.CallOption) (*TAPIReply, error) {
out := new(TAPIReply)
err := c.cc.Invoke(ctx, "/proto.GrpcCli/TAPIGetLink", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// GrpcCliServer is the server API for GrpcCli service.
type GrpcCliServer interface {
// Sends a greeting
SayHello(context.Context, *HelloRequest) (*HelloReply, error)
// Shutdown goSDN
Shutdown(context.Context, *ShutdownRequest) (*ShutdownReply, error)
// creates a stream to receive goSDN logs
CreateLogStream(*empty.Empty, GrpcCli_CreateLogStreamServer) error
// By now solely TAPI specific calls can be issued from the grpc-cli
// TAPIGetEdge
TAPIGetEdge(context.Context, *TAPIRequest) (*TAPIReply, error)
//TAPIGetEdgeNode
TAPIGetEdgeNode(context.Context, *TAPIRequest) (*TAPIReply, error)
// TAPIGetLink
TAPIGetLink(context.Context, *TAPIRequest) (*TAPIReply, error)
}
// UnimplementedGrpcCliServer can be embedded to have forward compatible implementations.
type UnimplementedGrpcCliServer struct {
}
func (*UnimplementedGrpcCliServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method SayHello not implemented")
}
func (*UnimplementedGrpcCliServer) Shutdown(context.Context, *ShutdownRequest) (*ShutdownReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method Shutdown not implemented")
}
func (*UnimplementedGrpcCliServer) CreateLogStream(*empty.Empty, GrpcCli_CreateLogStreamServer) error {
return status.Errorf(codes.Unimplemented, "method CreateLogStream not implemented")
}
func (*UnimplementedGrpcCliServer) TAPIGetEdge(context.Context, *TAPIRequest) (*TAPIReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method TAPIGetEdge not implemented")
}
func (*UnimplementedGrpcCliServer) TAPIGetEdgeNode(context.Context, *TAPIRequest) (*TAPIReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method TAPIGetEdgeNode not implemented")
}
func (*UnimplementedGrpcCliServer) TAPIGetLink(context.Context, *TAPIRequest) (*TAPIReply, error) {
return nil, status.Errorf(codes.Unimplemented, "method TAPIGetLink not implemented")
}
func RegisterGrpcCliServer(s *grpc.Server, srv GrpcCliServer) {
s.RegisterService(&_GrpcCli_serviceDesc, srv)
}
func _GrpcCli_SayHello_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HelloRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GrpcCliServer).SayHello(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/proto.GrpcCli/SayHello",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GrpcCliServer).SayHello(ctx, req.(*HelloRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GrpcCli_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ShutdownRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GrpcCliServer).Shutdown(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/proto.GrpcCli/Shutdown",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GrpcCliServer).Shutdown(ctx, req.(*ShutdownRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GrpcCli_CreateLogStream_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(empty.Empty)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(GrpcCliServer).CreateLogStream(m, &grpcCliCreateLogStreamServer{stream})
}
type GrpcCli_CreateLogStreamServer interface {
Send(*LogReply) error
grpc.ServerStream
}
type grpcCliCreateLogStreamServer struct {
grpc.ServerStream
}
func (x *grpcCliCreateLogStreamServer) Send(m *LogReply) error {
return x.ServerStream.SendMsg(m)
}
func _GrpcCli_TAPIGetEdge_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TAPIRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GrpcCliServer).TAPIGetEdge(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/proto.GrpcCli/TAPIGetEdge",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GrpcCliServer).TAPIGetEdge(ctx, req.(*TAPIRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GrpcCli_TAPIGetEdgeNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TAPIRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GrpcCliServer).TAPIGetEdgeNode(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/proto.GrpcCli/TAPIGetEdgeNode",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GrpcCliServer).TAPIGetEdgeNode(ctx, req.(*TAPIRequest))
}
return interceptor(ctx, in, info, handler)
}
func _GrpcCli_TAPIGetLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(TAPIRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(GrpcCliServer).TAPIGetLink(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/proto.GrpcCli/TAPIGetLink",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(GrpcCliServer).TAPIGetLink(ctx, req.(*TAPIRequest))
}
return interceptor(ctx, in, info, handler)
}
var _GrpcCli_serviceDesc = grpc.ServiceDesc{
ServiceName: "proto.GrpcCli",
HandlerType: (*GrpcCliServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SayHello",
Handler: _GrpcCli_SayHello_Handler,
},
{
MethodName: "Shutdown",
Handler: _GrpcCli_Shutdown_Handler,
},
{
MethodName: "TAPIGetEdge",
Handler: _GrpcCli_TAPIGetEdge_Handler,
},
{
MethodName: "TAPIGetEdgeNode",
Handler: _GrpcCli_TAPIGetEdgeNode_Handler,
},
{
MethodName: "TAPIGetLink",
Handler: _GrpcCli_TAPIGetLink_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "CreateLogStream",
Handler: _GrpcCli_CreateLogStream_Handler,
ServerStreams: true,
},
},
Metadata: "gosdnCLI.proto",
}
Loading