Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterLogicServiceServer(s grpc.ServiceRegistrar, srv LogicServiceServer)
- type HeartBeatToC
- func (*HeartBeatToC) Descriptor() ([]byte, []int)
- func (*HeartBeatToC) ProtoMessage()
- func (m *HeartBeatToC) Reset()
- func (m *HeartBeatToC) String() string
- func (m *HeartBeatToC) XXX_DiscardUnknown()
- func (m *HeartBeatToC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HeartBeatToC) XXX_Merge(src proto.Message)
- func (m *HeartBeatToC) XXX_Size() int
- func (m *HeartBeatToC) XXX_Unmarshal(b []byte) error
- type HeartBeatToS
- func (*HeartBeatToS) Descriptor() ([]byte, []int)
- func (m *HeartBeatToS) GetMcCode() string
- func (m *HeartBeatToS) GetP() int32
- func (*HeartBeatToS) ProtoMessage()
- func (m *HeartBeatToS) Reset()
- func (m *HeartBeatToS) String() string
- func (m *HeartBeatToS) XXX_DiscardUnknown()
- func (m *HeartBeatToS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *HeartBeatToS) XXX_Merge(src proto.Message)
- func (m *HeartBeatToS) XXX_Size() int
- func (m *HeartBeatToS) XXX_Unmarshal(b []byte) error
- type LogicRequest
- func (*LogicRequest) Descriptor() ([]byte, []int)
- func (m *LogicRequest) GetData() []byte
- func (m *LogicRequest) GetIP() string
- func (m *LogicRequest) GetMsgID() uint32
- func (*LogicRequest) ProtoMessage()
- func (m *LogicRequest) Reset()
- func (m *LogicRequest) String() string
- func (m *LogicRequest) XXX_DiscardUnknown()
- func (m *LogicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogicRequest) XXX_Merge(src proto.Message)
- func (m *LogicRequest) XXX_Size() int
- func (m *LogicRequest) XXX_Unmarshal(b []byte) error
- type LogicResponse
- func (*LogicResponse) Descriptor() ([]byte, []int)
- func (m *LogicResponse) GetData() []byte
- func (m *LogicResponse) GetError() string
- func (m *LogicResponse) GetIP() string
- func (m *LogicResponse) GetMsgID() uint32
- func (*LogicResponse) ProtoMessage()
- func (m *LogicResponse) Reset()
- func (m *LogicResponse) String() string
- func (m *LogicResponse) XXX_DiscardUnknown()
- func (m *LogicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LogicResponse) XXX_Merge(src proto.Message)
- func (m *LogicResponse) XXX_Size() int
- func (m *LogicResponse) XXX_Unmarshal(b []byte) error
- type LogicServiceClient
- type LogicServiceServer
- type LogicService_SendClient
- type LogicService_SendServer
- type UnimplementedLogicServiceServer
- type UnsafeLogicServiceServer
Constants ¶
const (
LogicService_Send_FullMethodName = "/LogicService/Send"
)
Variables ¶
var LogicService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "LogicService", HandlerType: (*LogicServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Send", Handler: _LogicService_Send_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "logic.proto", }
LogicService_ServiceDesc is the grpc.ServiceDesc for LogicService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterLogicServiceServer ¶
func RegisterLogicServiceServer(s grpc.ServiceRegistrar, srv LogicServiceServer)
Types ¶
type HeartBeatToC ¶
type HeartBeatToC struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
<protoId=0>
func (*HeartBeatToC) Descriptor ¶
func (*HeartBeatToC) Descriptor() ([]byte, []int)
func (*HeartBeatToC) ProtoMessage ¶
func (*HeartBeatToC) ProtoMessage()
func (*HeartBeatToC) Reset ¶
func (m *HeartBeatToC) Reset()
func (*HeartBeatToC) String ¶
func (m *HeartBeatToC) String() string
func (*HeartBeatToC) XXX_DiscardUnknown ¶
func (m *HeartBeatToC) XXX_DiscardUnknown()
func (*HeartBeatToC) XXX_Marshal ¶
func (m *HeartBeatToC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeartBeatToC) XXX_Merge ¶
func (dst *HeartBeatToC) XXX_Merge(src proto.Message)
func (*HeartBeatToC) XXX_Size ¶
func (m *HeartBeatToC) XXX_Size() int
func (*HeartBeatToC) XXX_Unmarshal ¶
func (m *HeartBeatToC) XXX_Unmarshal(b []byte) error
type HeartBeatToS ¶
type HeartBeatToS struct { McCode string `protobuf:"bytes,1,opt,name=McCode,proto3" json:"McCode,omitempty"` P int32 `protobuf:"varint,2,opt,name=P,proto3" json:"P,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
<protoId=0>
func (*HeartBeatToS) Descriptor ¶
func (*HeartBeatToS) Descriptor() ([]byte, []int)
func (*HeartBeatToS) GetMcCode ¶
func (m *HeartBeatToS) GetMcCode() string
func (*HeartBeatToS) GetP ¶
func (m *HeartBeatToS) GetP() int32
func (*HeartBeatToS) ProtoMessage ¶
func (*HeartBeatToS) ProtoMessage()
func (*HeartBeatToS) Reset ¶
func (m *HeartBeatToS) Reset()
func (*HeartBeatToS) String ¶
func (m *HeartBeatToS) String() string
func (*HeartBeatToS) XXX_DiscardUnknown ¶
func (m *HeartBeatToS) XXX_DiscardUnknown()
func (*HeartBeatToS) XXX_Marshal ¶
func (m *HeartBeatToS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeartBeatToS) XXX_Merge ¶
func (dst *HeartBeatToS) XXX_Merge(src proto.Message)
func (*HeartBeatToS) XXX_Size ¶
func (m *HeartBeatToS) XXX_Size() int
func (*HeartBeatToS) XXX_Unmarshal ¶
func (m *HeartBeatToS) XXX_Unmarshal(b []byte) error
type LogicRequest ¶
type LogicRequest struct { MsgID uint32 `protobuf:"varint,1,opt,name=MsgID,proto3" json:"MsgID,omitempty"` IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogicRequest) Descriptor ¶
func (*LogicRequest) Descriptor() ([]byte, []int)
func (*LogicRequest) GetData ¶
func (m *LogicRequest) GetData() []byte
func (*LogicRequest) GetIP ¶
func (m *LogicRequest) GetIP() string
func (*LogicRequest) GetMsgID ¶
func (m *LogicRequest) GetMsgID() uint32
func (*LogicRequest) ProtoMessage ¶
func (*LogicRequest) ProtoMessage()
func (*LogicRequest) Reset ¶
func (m *LogicRequest) Reset()
func (*LogicRequest) String ¶
func (m *LogicRequest) String() string
func (*LogicRequest) XXX_DiscardUnknown ¶
func (m *LogicRequest) XXX_DiscardUnknown()
func (*LogicRequest) XXX_Marshal ¶
func (m *LogicRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogicRequest) XXX_Merge ¶
func (dst *LogicRequest) XXX_Merge(src proto.Message)
func (*LogicRequest) XXX_Size ¶
func (m *LogicRequest) XXX_Size() int
func (*LogicRequest) XXX_Unmarshal ¶
func (m *LogicRequest) XXX_Unmarshal(b []byte) error
type LogicResponse ¶
type LogicResponse struct { MsgID uint32 `protobuf:"varint,1,opt,name=MsgID,proto3" json:"MsgID,omitempty"` IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` Error string `protobuf:"bytes,4,opt,name=Error,proto3" json:"Error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogicResponse) Descriptor ¶
func (*LogicResponse) Descriptor() ([]byte, []int)
func (*LogicResponse) GetData ¶
func (m *LogicResponse) GetData() []byte
func (*LogicResponse) GetError ¶
func (m *LogicResponse) GetError() string
func (*LogicResponse) GetIP ¶
func (m *LogicResponse) GetIP() string
func (*LogicResponse) GetMsgID ¶
func (m *LogicResponse) GetMsgID() uint32
func (*LogicResponse) ProtoMessage ¶
func (*LogicResponse) ProtoMessage()
func (*LogicResponse) Reset ¶
func (m *LogicResponse) Reset()
func (*LogicResponse) String ¶
func (m *LogicResponse) String() string
func (*LogicResponse) XXX_DiscardUnknown ¶
func (m *LogicResponse) XXX_DiscardUnknown()
func (*LogicResponse) XXX_Marshal ¶
func (m *LogicResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogicResponse) XXX_Merge ¶
func (dst *LogicResponse) XXX_Merge(src proto.Message)
func (*LogicResponse) XXX_Size ¶
func (m *LogicResponse) XXX_Size() int
func (*LogicResponse) XXX_Unmarshal ¶
func (m *LogicResponse) XXX_Unmarshal(b []byte) error
type LogicServiceClient ¶
type LogicServiceClient interface {
Send(ctx context.Context, opts ...grpc.CallOption) (LogicService_SendClient, error)
}
LogicServiceClient is the client API for LogicService 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 NewLogicServiceClient ¶
func NewLogicServiceClient(cc grpc.ClientConnInterface) LogicServiceClient
type LogicServiceServer ¶
type LogicServiceServer interface { Send(LogicService_SendServer) error // contains filtered or unexported methods }
LogicServiceServer is the server API for LogicService service. All implementations must embed UnimplementedLogicServiceServer for forward compatibility
type LogicService_SendClient ¶
type LogicService_SendClient interface { Send(*LogicRequest) error Recv() (*LogicResponse, error) grpc.ClientStream }
type LogicService_SendServer ¶
type LogicService_SendServer interface { Send(*LogicResponse) error Recv() (*LogicRequest, error) grpc.ServerStream }
type UnimplementedLogicServiceServer ¶
type UnimplementedLogicServiceServer struct { }
UnimplementedLogicServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLogicServiceServer) Send ¶
func (UnimplementedLogicServiceServer) Send(LogicService_SendServer) error
type UnsafeLogicServiceServer ¶
type UnsafeLogicServiceServer interface {
// contains filtered or unexported methods
}
UnsafeLogicServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogicServiceServer will result in compilation errors.