Documentation
¶
Index ¶
- func RegisterBFTEventServer(s *grpc.Server, srv BFTEventServer)
- type BFTEventClient
- type BFTEventServer
- type EventInform
- func (*EventInform) Descriptor() ([]byte, []int)
- func (m *EventInform) GetDelay() int32
- func (m *EventInform) GetEvent() string
- func (m *EventInform) GetEventArgs() []string
- func (m *EventInform) GetFrom() int32
- func (*EventInform) ProtoMessage()
- func (m *EventInform) Reset()
- func (m *EventInform) String() string
- func (m *EventInform) XXX_DiscardUnknown()
- func (m *EventInform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventInform) XXX_Merge(src proto.Message)
- func (m *EventInform) XXX_Size() int
- func (m *EventInform) XXX_Unmarshal(b []byte) error
- type EventReply
- func (*EventReply) Descriptor() ([]byte, []int)
- func (m *EventReply) GetGotit() int32
- func (*EventReply) ProtoMessage()
- func (m *EventReply) Reset()
- func (m *EventReply) String() string
- func (m *EventReply) XXX_DiscardUnknown()
- func (m *EventReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReply) XXX_Merge(src proto.Message)
- func (m *EventReply) XXX_Size() int
- func (m *EventReply) XXX_Unmarshal(b []byte) error
- type UnimplementedBFTEventServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBFTEventServer ¶
func RegisterBFTEventServer(s *grpc.Server, srv BFTEventServer)
Types ¶
type BFTEventClient ¶
type BFTEventClient interface { // Function invoked to send the request InformEvent(ctx context.Context, in *EventInform, opts ...grpc.CallOption) (*EventReply, error) }
BFTEventClient is the client API for BFTEvent service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBFTEventClient ¶
func NewBFTEventClient(cc *grpc.ClientConn) BFTEventClient
type BFTEventServer ¶
type BFTEventServer interface { // Function invoked to send the request InformEvent(context.Context, *EventInform) (*EventReply, error) }
BFTEventServer is the server API for BFTEvent service.
type EventInform ¶
type EventInform struct { From int32 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` Event string `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` EventArgs []string `protobuf:"bytes,3,rep,name=event_args,json=eventArgs,proto3" json:"event_args,omitempty"` Delay int32 `protobuf:"varint,4,opt,name=delay,proto3" json:"delay,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing requested numbers
func (*EventInform) Descriptor ¶
func (*EventInform) Descriptor() ([]byte, []int)
func (*EventInform) GetDelay ¶
func (m *EventInform) GetDelay() int32
func (*EventInform) GetEvent ¶
func (m *EventInform) GetEvent() string
func (*EventInform) GetEventArgs ¶
func (m *EventInform) GetEventArgs() []string
func (*EventInform) GetFrom ¶
func (m *EventInform) GetFrom() int32
func (*EventInform) ProtoMessage ¶
func (*EventInform) ProtoMessage()
func (*EventInform) Reset ¶
func (m *EventInform) Reset()
func (*EventInform) String ¶
func (m *EventInform) String() string
func (*EventInform) XXX_DiscardUnknown ¶
func (m *EventInform) XXX_DiscardUnknown()
func (*EventInform) XXX_Marshal ¶
func (m *EventInform) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventInform) XXX_Merge ¶
func (m *EventInform) XXX_Merge(src proto.Message)
func (*EventInform) XXX_Size ¶
func (m *EventInform) XXX_Size() int
func (*EventInform) XXX_Unmarshal ¶
func (m *EventInform) XXX_Unmarshal(b []byte) error
type EventReply ¶
type EventReply struct { Gotit int32 `protobuf:"varint,1,opt,name=gotit,proto3" json:"gotit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message containing response
func (*EventReply) Descriptor ¶
func (*EventReply) Descriptor() ([]byte, []int)
func (*EventReply) GetGotit ¶
func (m *EventReply) GetGotit() int32
func (*EventReply) ProtoMessage ¶
func (*EventReply) ProtoMessage()
func (*EventReply) Reset ¶
func (m *EventReply) Reset()
func (*EventReply) String ¶
func (m *EventReply) String() string
func (*EventReply) XXX_DiscardUnknown ¶
func (m *EventReply) XXX_DiscardUnknown()
func (*EventReply) XXX_Marshal ¶
func (m *EventReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReply) XXX_Merge ¶
func (m *EventReply) XXX_Merge(src proto.Message)
func (*EventReply) XXX_Size ¶
func (m *EventReply) XXX_Size() int
func (*EventReply) XXX_Unmarshal ¶
func (m *EventReply) XXX_Unmarshal(b []byte) error
type UnimplementedBFTEventServer ¶
type UnimplementedBFTEventServer struct { }
UnimplementedBFTEventServer can be embedded to have forward compatible implementations.
func (*UnimplementedBFTEventServer) InformEvent ¶
func (*UnimplementedBFTEventServer) InformEvent(ctx context.Context, req *EventInform) (*EventReply, error)
Click to show internal directories.
Click to hide internal directories.