Documentation
¶
Overview ¶
Package client is a generated protocol buffer package.
It is generated from these files:
proto/client/client.proto
It has these top-level messages:
CommandResult Nothing
Index ¶
- func RegisterBFTRaftClientServer(s *grpc.Server, srv BFTRaftClientServer)
- type BFTRaftClientClient
- type BFTRaftClientServer
- type CommandResult
- func (*CommandResult) Descriptor() ([]byte, []int)
- func (m *CommandResult) GetGroup() uint64
- func (m *CommandResult) GetNodeId() uint64
- func (m *CommandResult) GetRequestId() uint64
- func (m *CommandResult) GetResult() []byte
- func (m *CommandResult) GetSignature() []byte
- func (*CommandResult) ProtoMessage()
- func (m *CommandResult) Reset()
- func (m *CommandResult) String() string
- type Nothing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBFTRaftClientServer ¶
func RegisterBFTRaftClientServer(s *grpc.Server, srv BFTRaftClientServer)
Types ¶
type BFTRaftClientClient ¶
type BFTRaftClientClient interface {
ResponseCommand(ctx context.Context, in *CommandResult, opts ...grpc.CallOption) (*Nothing, error)
}
func NewBFTRaftClientClient ¶
func NewBFTRaftClientClient(cc *grpc.ClientConn) BFTRaftClientClient
type BFTRaftClientServer ¶
type BFTRaftClientServer interface {
ResponseCommand(context.Context, *CommandResult) (*Nothing, error)
}
type CommandResult ¶
type CommandResult struct { Group uint64 `protobuf:"varint,1,opt,name=group" json:"group,omitempty"` NodeId uint64 `protobuf:"varint,2,opt,name=node_id,json=nodeId" json:"node_id,omitempty"` RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId" json:"request_id,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` Result []byte `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty"` }
func (*CommandResult) Descriptor ¶
func (*CommandResult) Descriptor() ([]byte, []int)
func (*CommandResult) GetGroup ¶
func (m *CommandResult) GetGroup() uint64
func (*CommandResult) GetNodeId ¶
func (m *CommandResult) GetNodeId() uint64
func (*CommandResult) GetRequestId ¶
func (m *CommandResult) GetRequestId() uint64
func (*CommandResult) GetResult ¶
func (m *CommandResult) GetResult() []byte
func (*CommandResult) GetSignature ¶
func (m *CommandResult) GetSignature() []byte
func (*CommandResult) ProtoMessage ¶
func (*CommandResult) ProtoMessage()
func (*CommandResult) Reset ¶
func (m *CommandResult) Reset()
func (*CommandResult) String ¶
func (m *CommandResult) String() string
Click to show internal directories.
Click to hide internal directories.