Documentation ¶
Index ¶
- Variables
- func RegisterStreamServiceServer(s *grpc.Server, srv StreamServiceServer)
- type BBA
- func (*BBA) Descriptor() ([]byte, []int)
- func (m *BBA) GetPayload() []byte
- func (m *BBA) GetRound() uint64
- func (*BBA) ProtoMessage()
- func (m *BBA) Reset()
- func (m *BBA) String() string
- func (m *BBA) XXX_DiscardUnknown()
- func (m *BBA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BBA) XXX_Merge(src proto.Message)
- func (m *BBA) XXX_Size() int
- func (m *BBA) XXX_Unmarshal(b []byte) error
- type BBAType
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetBba() *BBA
- func (m *Message) GetEpoch() uint64
- func (m *Message) GetPayload() isMessage_Payload
- func (m *Message) GetProposer() string
- func (m *Message) GetRbc() *RBC
- func (m *Message) GetSender() string
- func (m *Message) GetSignature() []byte
- func (m *Message) GetTimestamp() *timestamp.Timestamp
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (*Message) XXX_OneofWrappers() []interface{}
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Message_Bba
- type Message_Rbc
- type RBC
- func (*RBC) Descriptor() ([]byte, []int)
- func (m *RBC) GetContentLength() uint64
- func (m *RBC) GetPayload() []byte
- func (*RBC) ProtoMessage()
- func (m *RBC) Reset()
- func (m *RBC) String() string
- func (m *RBC) XXX_DiscardUnknown()
- func (m *RBC) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RBC) XXX_Merge(src proto.Message)
- func (m *RBC) XXX_Size() int
- func (m *RBC) XXX_Unmarshal(b []byte) error
- type RBCType
- type StreamServiceClient
- type StreamServiceServer
- type StreamService_MessageStreamClient
- type StreamService_MessageStreamServer
- type UnimplementedStreamServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var BBAType_name = map[int32]string{
0: "BVAL",
1: "AUX",
}
View Source
var BBAType_value = map[string]int32{
"BVAL": 0,
"AUX": 1,
}
View Source
var RBCType_name = map[int32]string{
0: "VAL",
1: "ECHO",
2: "READY",
}
View Source
var RBCType_value = map[string]int32{
"VAL": 0,
"ECHO": 1,
"READY": 2,
}
Functions ¶
func RegisterStreamServiceServer ¶
func RegisterStreamServiceServer(s *grpc.Server, srv StreamServiceServer)
Types ¶
type BBA ¶
type BBA struct { // marshaled data by type Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // each epoch's BBA round, it is different with epoch Round uint64 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"` // payload type Type BBAType `protobuf:"varint,4,opt,name=type,enum=pb.BBAType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BBA) Descriptor ¶
func (*BBA) GetPayload ¶
func (*BBA) ProtoMessage ¶
func (*BBA) ProtoMessage()
func (*BBA) XXX_DiscardUnknown ¶
func (m *BBA) XXX_DiscardUnknown()
func (*BBA) XXX_Unmarshal ¶
type Message ¶
type Message struct { // The signature of public key Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"` // The address of source member who sent this message first Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` // The address of sender member who sent this message Sender string `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"` // The time when the source sends Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // message's epoch Epoch uint64 `protobuf:"varint,5,opt,name=epoch,proto3" json:"epoch,omitempty"` // Types that are valid to be assigned to Payload: // *Message_Rbc // *Message_Bba Payload isMessage_Payload `protobuf_oneof:"payload"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetPayload ¶
func (m *Message) GetPayload() isMessage_Payload
func (*Message) GetProposer ¶
func (*Message) GetSignature ¶
func (*Message) GetTimestamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_OneofWrappers ¶
func (*Message) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Message) XXX_Unmarshal ¶
type Message_Bba ¶
type Message_Bba struct {
Bba *BBA `protobuf:"bytes,7,opt,name=bba,proto3,oneof"`
}
type Message_Rbc ¶
type Message_Rbc struct {
Rbc *RBC `protobuf:"bytes,6,opt,name=rbc,proto3,oneof"`
}
type RBC ¶
type RBC struct { // marshaled data by type Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` // The length of original data ContentLength uint64 `protobuf:"varint,2,opt,name=contentLength,proto3" json:"contentLength,omitempty"` // payload type Type RBCType `protobuf:"varint,3,opt,name=type,enum=pb.RBCType" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RBC) Descriptor ¶
func (*RBC) GetContentLength ¶
func (*RBC) GetPayload ¶
func (*RBC) ProtoMessage ¶
func (*RBC) ProtoMessage()
func (*RBC) XXX_DiscardUnknown ¶
func (m *RBC) XXX_DiscardUnknown()
func (*RBC) XXX_Unmarshal ¶
type StreamServiceClient ¶
type StreamServiceClient interface {
MessageStream(ctx context.Context, opts ...grpc.CallOption) (StreamService_MessageStreamClient, error)
}
StreamServiceClient is the client API for StreamService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewStreamServiceClient ¶
func NewStreamServiceClient(cc *grpc.ClientConn) StreamServiceClient
type StreamServiceServer ¶
type StreamServiceServer interface {
MessageStream(StreamService_MessageStreamServer) error
}
StreamServiceServer is the server API for StreamService service.
type UnimplementedStreamServiceServer ¶
type UnimplementedStreamServiceServer struct { }
UnimplementedStreamServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedStreamServiceServer) MessageStream ¶
func (*UnimplementedStreamServiceServer) MessageStream(srv StreamService_MessageStreamServer) error
Click to show internal directories.
Click to hide internal directories.