Documentation ¶
Index ¶
- func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer)
- type BHMsg
- func (*BHMsg) Descriptor() ([]byte, []int)
- func (m *BHMsg) GetPayload() []byte
- func (m *BHMsg) GetSignature() []byte
- func (m *BHMsg) GetType() uint32
- func (*BHMsg) ProtoMessage()
- func (m *BHMsg) Reset()
- func (m *BHMsg) String() string
- func (m *BHMsg) XXX_DiscardUnknown()
- func (m *BHMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BHMsg) XXX_Merge(src proto.Message)
- func (m *BHMsg) XXX_Size() int
- func (m *BHMsg) XXX_Unmarshal(b []byte) error
- type P2PServiceClient
- type P2PServiceServer
- type P2PService_CommunicateClient
- type P2PService_CommunicateServer
- type UnimplementedP2PServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterP2PServiceServer ¶
func RegisterP2PServiceServer(s *grpc.Server, srv P2PServiceServer)
Types ¶
type BHMsg ¶
type BHMsg struct { Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` Type uint32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BHMsg) Descriptor ¶
func (*BHMsg) GetPayload ¶
func (*BHMsg) GetSignature ¶
func (*BHMsg) ProtoMessage ¶
func (*BHMsg) ProtoMessage()
func (*BHMsg) XXX_DiscardUnknown ¶
func (m *BHMsg) XXX_DiscardUnknown()
func (*BHMsg) XXX_Marshal ¶
func (*BHMsg) XXX_Unmarshal ¶
type P2PServiceClient ¶
type P2PServiceClient interface {
Communicate(ctx context.Context, opts ...grpc.CallOption) (P2PService_CommunicateClient, error)
}
P2PServiceClient is the client API for P2PService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewP2PServiceClient ¶
func NewP2PServiceClient(cc *grpc.ClientConn) P2PServiceClient
type P2PServiceServer ¶
type P2PServiceServer interface {
Communicate(P2PService_CommunicateServer) error
}
P2PServiceServer is the server API for P2PService service.
type UnimplementedP2PServiceServer ¶
type UnimplementedP2PServiceServer struct { }
UnimplementedP2PServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedP2PServiceServer) Communicate ¶
func (*UnimplementedP2PServiceServer) Communicate(srv P2PService_CommunicateServer) error
Click to show internal directories.
Click to hide internal directories.