Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAddHelperServer(s grpc.ServiceRegistrar, srv AddHelperServer)
- func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
- type AddHelperClient
- type AddHelperServer
- type DecodeRequest
- type DecodeResponse
- type Empty
- type EncodeRequest
- type EncodeResponse
- type GetRequest
- type GetResponse
- type InfoRequest
- type InfoResponse
- type PluginClient
- type PluginServer
- type PutRequest
- func (*PutRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PutRequest) GetAddServer() uint32
- func (x *PutRequest) GetKey() string
- func (x *PutRequest) GetValue() string
- func (*PutRequest) ProtoMessage()
- func (x *PutRequest) ProtoReflect() protoreflect.Message
- func (x *PutRequest) Reset()
- func (x *PutRequest) String() string
- type SumRequest
- type SumResponse
- type UnimplementedAddHelperServer
- type UnimplementedPluginServer
- func (UnimplementedPluginServer) Decode(context.Context, *DecodeRequest) (*DecodeResponse, error)
- func (UnimplementedPluginServer) Encode(context.Context, *EncodeRequest) (*EncodeResponse, error)
- func (UnimplementedPluginServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (UnimplementedPluginServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
- func (UnimplementedPluginServer) Put(context.Context, *PutRequest) (*Empty, error)
- type UnsafeAddHelperServer
- type UnsafePluginServer
Constants ¶
const ( Plugin_Get_FullMethodName = "/proto.Plugin/Get" Plugin_Put_FullMethodName = "/proto.Plugin/Put" Plugin_Info_FullMethodName = "/proto.Plugin/Info" Plugin_Encode_FullMethodName = "/proto.Plugin/Encode" Plugin_Decode_FullMethodName = "/proto.Plugin/Decode" )
const (
AddHelper_Sum_FullMethodName = "/proto.AddHelper/Sum"
)
Variables ¶
var AddHelper_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.AddHelper", HandlerType: (*AddHelperServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sum", Handler: _AddHelper_Sum_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/plugin.proto", }
AddHelper_ServiceDesc is the grpc.ServiceDesc for AddHelper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_plugin_proto protoreflect.FileDescriptor
var Plugin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Plugin", HandlerType: (*PluginServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Get", Handler: _Plugin_Get_Handler, }, { MethodName: "Put", Handler: _Plugin_Put_Handler, }, { MethodName: "Info", Handler: _Plugin_Info_Handler, }, { MethodName: "Encode", Handler: _Plugin_Encode_Handler, }, { MethodName: "Decode", Handler: _Plugin_Decode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/plugin.proto", }
Plugin_ServiceDesc is the grpc.ServiceDesc for Plugin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAddHelperServer ¶
func RegisterAddHelperServer(s grpc.ServiceRegistrar, srv AddHelperServer)
func RegisterPluginServer ¶
func RegisterPluginServer(s grpc.ServiceRegistrar, srv PluginServer)
Types ¶
type AddHelperClient ¶
type AddHelperClient interface {
Sum(ctx context.Context, in *SumRequest, opts ...grpc.CallOption) (*SumResponse, error)
}
AddHelperClient is the client API for AddHelper service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAddHelperClient ¶
func NewAddHelperClient(cc grpc.ClientConnInterface) AddHelperClient
type AddHelperServer ¶
type AddHelperServer interface {
Sum(context.Context, *SumRequest) (*SumResponse, error)
}
AddHelperServer is the server API for AddHelper service. All implementations should embed UnimplementedAddHelperServer for forward compatibility
type DecodeRequest ¶
type DecodeRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*DecodeRequest) Descriptor
deprecated
func (*DecodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DecodeRequest.ProtoReflect.Descriptor instead.
func (*DecodeRequest) GetKey ¶
func (x *DecodeRequest) GetKey() string
func (*DecodeRequest) ProtoMessage ¶
func (*DecodeRequest) ProtoMessage()
func (*DecodeRequest) ProtoReflect ¶
func (x *DecodeRequest) ProtoReflect() protoreflect.Message
func (*DecodeRequest) Reset ¶
func (x *DecodeRequest) Reset()
func (*DecodeRequest) String ¶
func (x *DecodeRequest) String() string
type DecodeResponse ¶
type DecodeResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DecodeResponse) Descriptor
deprecated
func (*DecodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DecodeResponse.ProtoReflect.Descriptor instead.
func (*DecodeResponse) GetValue ¶
func (x *DecodeResponse) GetValue() string
func (*DecodeResponse) ProtoMessage ¶
func (*DecodeResponse) ProtoMessage()
func (*DecodeResponse) ProtoReflect ¶
func (x *DecodeResponse) ProtoReflect() protoreflect.Message
func (*DecodeResponse) Reset ¶
func (x *DecodeResponse) Reset()
func (*DecodeResponse) String ¶
func (x *DecodeResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type EncodeRequest ¶
type EncodeRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*EncodeRequest) Descriptor
deprecated
func (*EncodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use EncodeRequest.ProtoReflect.Descriptor instead.
func (*EncodeRequest) GetKey ¶
func (x *EncodeRequest) GetKey() string
func (*EncodeRequest) ProtoMessage ¶
func (*EncodeRequest) ProtoMessage()
func (*EncodeRequest) ProtoReflect ¶
func (x *EncodeRequest) ProtoReflect() protoreflect.Message
func (*EncodeRequest) Reset ¶
func (x *EncodeRequest) Reset()
func (*EncodeRequest) String ¶
func (x *EncodeRequest) String() string
type EncodeResponse ¶
type EncodeResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*EncodeResponse) Descriptor
deprecated
func (*EncodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use EncodeResponse.ProtoReflect.Descriptor instead.
func (*EncodeResponse) GetValue ¶
func (x *EncodeResponse) GetValue() string
func (*EncodeResponse) ProtoMessage ¶
func (*EncodeResponse) ProtoMessage()
func (*EncodeResponse) ProtoReflect ¶
func (x *EncodeResponse) ProtoReflect() protoreflect.Message
func (*EncodeResponse) Reset ¶
func (x *EncodeResponse) Reset()
func (*EncodeResponse) String ¶
func (x *EncodeResponse) String() string
type GetRequest ¶
type GetRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetKey ¶
func (x *GetRequest) GetKey() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetValue ¶
func (x *GetResponse) GetValue() string
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type InfoRequest ¶
type InfoRequest struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*InfoRequest) Descriptor
deprecated
func (*InfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.
func (*InfoRequest) GetKey ¶
func (x *InfoRequest) GetKey() string
func (*InfoRequest) ProtoMessage ¶
func (*InfoRequest) ProtoMessage()
func (*InfoRequest) ProtoReflect ¶
func (x *InfoRequest) ProtoReflect() protoreflect.Message
func (*InfoRequest) Reset ¶
func (x *InfoRequest) Reset()
func (*InfoRequest) String ¶
func (x *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*InfoResponse) Descriptor
deprecated
func (*InfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.
func (*InfoResponse) GetValue ¶
func (x *InfoResponse) GetValue() string
func (*InfoResponse) ProtoMessage ¶
func (*InfoResponse) ProtoMessage()
func (*InfoResponse) ProtoReflect ¶
func (x *InfoResponse) ProtoReflect() protoreflect.Message
func (*InfoResponse) Reset ¶
func (x *InfoResponse) Reset()
func (*InfoResponse) String ¶
func (x *InfoResponse) String() string
type PluginClient ¶
type PluginClient interface { Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*Empty, error) Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error) Encode(ctx context.Context, in *EncodeRequest, opts ...grpc.CallOption) (*EncodeResponse, error) Decode(ctx context.Context, in *DecodeRequest, opts ...grpc.CallOption) (*DecodeResponse, error) }
PluginClient is the client API for Plugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPluginClient ¶
func NewPluginClient(cc grpc.ClientConnInterface) PluginClient
type PluginServer ¶
type PluginServer interface { Get(context.Context, *GetRequest) (*GetResponse, error) Put(context.Context, *PutRequest) (*Empty, error) Info(context.Context, *InfoRequest) (*InfoResponse, error) Encode(context.Context, *EncodeRequest) (*EncodeResponse, error) Decode(context.Context, *DecodeRequest) (*DecodeResponse, error) }
PluginServer is the server API for Plugin service. All implementations should embed UnimplementedPluginServer for forward compatibility
type PutRequest ¶
type PutRequest struct { AddServer uint32 `protobuf:"varint,1,opt,name=add_server,json=addServer,proto3" json:"add_server,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetAddServer ¶
func (x *PutRequest) GetAddServer() uint32
func (*PutRequest) GetKey ¶
func (x *PutRequest) GetKey() string
func (*PutRequest) GetValue ¶
func (x *PutRequest) GetValue() string
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type SumRequest ¶
type SumRequest struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` B string `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` // contains filtered or unexported fields }
func (*SumRequest) Descriptor
deprecated
func (*SumRequest) Descriptor() ([]byte, []int)
Deprecated: Use SumRequest.ProtoReflect.Descriptor instead.
func (*SumRequest) GetA ¶
func (x *SumRequest) GetA() string
func (*SumRequest) GetB ¶
func (x *SumRequest) GetB() string
func (*SumRequest) ProtoMessage ¶
func (*SumRequest) ProtoMessage()
func (*SumRequest) ProtoReflect ¶
func (x *SumRequest) ProtoReflect() protoreflect.Message
func (*SumRequest) Reset ¶
func (x *SumRequest) Reset()
func (*SumRequest) String ¶
func (x *SumRequest) String() string
type SumResponse ¶
type SumResponse struct { R string `protobuf:"bytes,1,opt,name=r,proto3" json:"r,omitempty"` // contains filtered or unexported fields }
func (*SumResponse) Descriptor
deprecated
func (*SumResponse) Descriptor() ([]byte, []int)
Deprecated: Use SumResponse.ProtoReflect.Descriptor instead.
func (*SumResponse) GetR ¶
func (x *SumResponse) GetR() string
func (*SumResponse) ProtoMessage ¶
func (*SumResponse) ProtoMessage()
func (*SumResponse) ProtoReflect ¶
func (x *SumResponse) ProtoReflect() protoreflect.Message
func (*SumResponse) Reset ¶
func (x *SumResponse) Reset()
func (*SumResponse) String ¶
func (x *SumResponse) String() string
type UnimplementedAddHelperServer ¶
type UnimplementedAddHelperServer struct { }
UnimplementedAddHelperServer should be embedded to have forward compatible implementations.
func (UnimplementedAddHelperServer) Sum ¶
func (UnimplementedAddHelperServer) Sum(context.Context, *SumRequest) (*SumResponse, error)
type UnimplementedPluginServer ¶
type UnimplementedPluginServer struct { }
UnimplementedPluginServer should be embedded to have forward compatible implementations.
func (UnimplementedPluginServer) Decode ¶
func (UnimplementedPluginServer) Decode(context.Context, *DecodeRequest) (*DecodeResponse, error)
func (UnimplementedPluginServer) Encode ¶
func (UnimplementedPluginServer) Encode(context.Context, *EncodeRequest) (*EncodeResponse, error)
func (UnimplementedPluginServer) Get ¶
func (UnimplementedPluginServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (UnimplementedPluginServer) Info ¶
func (UnimplementedPluginServer) Info(context.Context, *InfoRequest) (*InfoResponse, error)
func (UnimplementedPluginServer) Put ¶
func (UnimplementedPluginServer) Put(context.Context, *PutRequest) (*Empty, error)
type UnsafeAddHelperServer ¶
type UnsafeAddHelperServer interface {
// contains filtered or unexported methods
}
UnsafeAddHelperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AddHelperServer will result in compilation errors.
type UnsafePluginServer ¶
type UnsafePluginServer interface {
// contains filtered or unexported methods
}
UnsafePluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PluginServer will result in compilation errors.