Documentation ¶
Index ¶
- Variables
- func RegisterCommandServiceServer(s *grpc.Server, srv CommandServiceServer)
- func RegisterPeerTransportServer(s *grpc.Server, srv PeerTransportServer)
- type ClientPacket
- func (*ClientPacket) Descriptor() ([]byte, []int)
- func (m *ClientPacket) GetMessage() []byte
- func (m *ClientPacket) GetSignature() []byte
- func (m *ClientPacket) Marshal() (dAtA []byte, err error)
- func (m *ClientPacket) MarshalTo(dAtA []byte) (int, error)
- func (m *ClientPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ClientPacket) ProtoMessage()
- func (m *ClientPacket) Reset()
- func (m *ClientPacket) Size() (n int)
- func (m *ClientPacket) String() string
- func (m *ClientPacket) Unmarshal(dAtA []byte) error
- func (m *ClientPacket) XXX_DiscardUnknown()
- func (m *ClientPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientPacket) XXX_Merge(src proto.Message)
- func (m *ClientPacket) XXX_Size() int
- func (m *ClientPacket) XXX_Unmarshal(b []byte) error
- type CommandServiceClient
- type CommandServiceServer
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type PeerTransportClient
- type PeerTransportServer
- type PeerTransport_MessageClient
- type PeerTransport_MessageServer
- type TransMsg
- func (*TransMsg) Descriptor() ([]byte, []int)
- func (m *TransMsg) GetMsgs() []peerpb.Message
- func (m *TransMsg) Marshal() (dAtA []byte, err error)
- func (m *TransMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *TransMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TransMsg) ProtoMessage()
- func (m *TransMsg) Reset()
- func (m *TransMsg) Size() (n int)
- func (m *TransMsg) String() string
- func (m *TransMsg) Unmarshal(dAtA []byte) error
- func (m *TransMsg) XXX_DiscardUnknown()
- func (m *TransMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransMsg) XXX_Merge(src proto.Message)
- func (m *TransMsg) XXX_Size() int
- func (m *TransMsg) XXX_Unmarshal(b []byte) error
- type UnimplementedCommandServiceServer
- type UnimplementedPeerTransportServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterCommandServiceServer ¶
func RegisterCommandServiceServer(s *grpc.Server, srv CommandServiceServer)
func RegisterPeerTransportServer ¶
func RegisterPeerTransportServer(s *grpc.Server, srv PeerTransportServer)
Types ¶
type ClientPacket ¶
type ClientPacket struct { Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
func (*ClientPacket) Descriptor ¶
func (*ClientPacket) Descriptor() ([]byte, []int)
func (*ClientPacket) GetMessage ¶
func (m *ClientPacket) GetMessage() []byte
func (*ClientPacket) GetSignature ¶
func (m *ClientPacket) GetSignature() []byte
func (*ClientPacket) Marshal ¶
func (m *ClientPacket) Marshal() (dAtA []byte, err error)
func (*ClientPacket) MarshalToSizedBuffer ¶
func (m *ClientPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ClientPacket) ProtoMessage ¶
func (*ClientPacket) ProtoMessage()
func (*ClientPacket) Reset ¶
func (m *ClientPacket) Reset()
func (*ClientPacket) Size ¶
func (m *ClientPacket) Size() (n int)
func (*ClientPacket) String ¶
func (m *ClientPacket) String() string
func (*ClientPacket) Unmarshal ¶
func (m *ClientPacket) Unmarshal(dAtA []byte) error
func (*ClientPacket) XXX_DiscardUnknown ¶
func (m *ClientPacket) XXX_DiscardUnknown()
func (*ClientPacket) XXX_Marshal ¶
func (m *ClientPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientPacket) XXX_Merge ¶
func (m *ClientPacket) XXX_Merge(src proto.Message)
func (*ClientPacket) XXX_Size ¶
func (m *ClientPacket) XXX_Size() int
func (*ClientPacket) XXX_Unmarshal ¶
func (m *ClientPacket) XXX_Unmarshal(b []byte) error
type CommandServiceClient ¶
type CommandServiceClient interface {
Apply(ctx context.Context, in *ClientPacket, opts ...grpc.CallOption) (*ClientPacket, error)
}
CommandServiceClient is the client API for CommandService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommandServiceClient ¶
func NewCommandServiceClient(cc *grpc.ClientConn) CommandServiceClient
type CommandServiceServer ¶
type CommandServiceServer interface {
Apply(context.Context, *ClientPacket) (*ClientPacket, error)
}
CommandServiceServer is the server API for CommandService service.
type Empty ¶
type Empty struct { }
Empty is an empty message. It is identical to google.protobuf.Empty, but permits future modifications because it is custom.
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Unmarshal ¶
type PeerTransportClient ¶
type PeerTransportClient interface {
Message(ctx context.Context, opts ...grpc.CallOption) (PeerTransport_MessageClient, error)
}
PeerTransportClient is the client API for PeerTransport service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewPeerTransportClient ¶
func NewPeerTransportClient(cc *grpc.ClientConn) PeerTransportClient
type PeerTransportServer ¶
type PeerTransportServer interface {
Message(PeerTransport_MessageServer) error
}
PeerTransportServer is the server API for PeerTransport service.
type TransMsg ¶
type TransMsg struct {
Msgs []peerpb.Message `protobuf:"bytes,1,rep,name=msgs,proto3" json:"msgs"`
}
func (*TransMsg) Descriptor ¶
func (*TransMsg) MarshalToSizedBuffer ¶
func (*TransMsg) ProtoMessage ¶
func (*TransMsg) ProtoMessage()
func (*TransMsg) XXX_DiscardUnknown ¶
func (m *TransMsg) XXX_DiscardUnknown()
func (*TransMsg) XXX_Marshal ¶
func (*TransMsg) XXX_Unmarshal ¶
type UnimplementedCommandServiceServer ¶
type UnimplementedCommandServiceServer struct { }
UnimplementedCommandServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCommandServiceServer) Apply ¶
func (*UnimplementedCommandServiceServer) Apply(ctx context.Context, req *ClientPacket) (*ClientPacket, error)
type UnimplementedPeerTransportServer ¶
type UnimplementedPeerTransportServer struct { }
UnimplementedPeerTransportServer can be embedded to have forward compatible implementations.
func (*UnimplementedPeerTransportServer) Message ¶
func (*UnimplementedPeerTransportServer) Message(srv PeerTransport_MessageServer) error