Documentation ¶
Index ¶
- func RegisterSimulatorServer(s *grpc.Server, srv SimulatorServer)
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type InitRequest
- func (*InitRequest) Descriptor() ([]byte, []int)
- func (m *InitRequest) GetNBF() int32
- func (m *InitRequest) GetNFS() int32
- func (m *InitRequest) GetNHonest() int32
- func (*InitRequest) ProtoMessage()
- func (m *InitRequest) Reset()
- func (m *InitRequest) String() string
- func (m *InitRequest) XXX_DiscardUnknown()
- func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InitRequest) XXX_Merge(src proto.Message)
- func (m *InitRequest) XXX_Size() int
- func (m *InitRequest) XXX_Unmarshal(b []byte) error
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetInternalMsgType() uint32
- func (m *Proposal) GetPlayerID() int32
- func (m *Proposal) GetValue() string
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) String() string
- func (m *Proposal) XXX_DiscardUnknown()
- func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Proposal) XXX_Merge(src proto.Message)
- func (m *Proposal) XXX_Size() int
- func (m *Proposal) XXX_Unmarshal(b []byte) error
- type Reply
- func (*Reply) Descriptor() ([]byte, []int)
- func (m *Reply) GetInternalMsgType() uint32
- func (m *Reply) GetMessageType() int32
- func (m *Reply) GetValue() string
- func (*Reply) ProtoMessage()
- func (m *Reply) Reset()
- func (m *Reply) String() string
- func (m *Reply) XXX_DiscardUnknown()
- func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Reply) XXX_Merge(src proto.Message)
- func (m *Reply) XXX_Size() int
- func (m *Reply) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetInternalMsgType() uint32
- func (m *Request) GetPlayerID() int32
- func (m *Request) GetValue() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type SimulatorClient
- type SimulatorServer
- type Simulator_InitClient
- type Simulator_InitServer
- type Simulator_PingClient
- type Simulator_PingServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSimulatorServer ¶
func RegisterSimulatorServer(s *grpc.Server, srv SimulatorServer)
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
an empty message
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 InitRequest ¶
type InitRequest struct { NHonest int32 `protobuf:"varint,1,opt,name=nHonest,proto3" json:"nHonest,omitempty"` NFS int32 `protobuf:"varint,2,opt,name=nFS,proto3" json:"nFS,omitempty"` NBF int32 `protobuf:"varint,3,opt,name=nBF,proto3" json:"nBF,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message telling the server to initialize the necessary parameters
func (*InitRequest) Descriptor ¶
func (*InitRequest) Descriptor() ([]byte, []int)
func (*InitRequest) GetNBF ¶
func (m *InitRequest) GetNBF() int32
func (*InitRequest) GetNFS ¶
func (m *InitRequest) GetNFS() int32
func (*InitRequest) GetNHonest ¶
func (m *InitRequest) GetNHonest() int32
func (*InitRequest) ProtoMessage ¶
func (*InitRequest) ProtoMessage()
func (*InitRequest) Reset ¶
func (m *InitRequest) Reset()
func (*InitRequest) String ¶
func (m *InitRequest) String() string
func (*InitRequest) XXX_DiscardUnknown ¶
func (m *InitRequest) XXX_DiscardUnknown()
func (*InitRequest) XXX_Marshal ¶
func (m *InitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InitRequest) XXX_Merge ¶
func (dst *InitRequest) XXX_Merge(src proto.Message)
func (*InitRequest) XXX_Size ¶
func (m *InitRequest) XXX_Size() int
func (*InitRequest) XXX_Unmarshal ¶
func (m *InitRequest) XXX_Unmarshal(b []byte) error
type Proposal ¶
type Proposal struct { PlayerID int32 `protobuf:"varint,1,opt,name=playerID,proto3" json:"playerID,omitempty"` InternalMsgType uint32 `protobuf:"varint,2,opt,name=internalMsgType,proto3" json:"internalMsgType,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Proposal) Descriptor ¶
func (*Proposal) GetInternalMsgType ¶
func (*Proposal) GetPlayerID ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
func (*Proposal) XXX_DiscardUnknown ¶
func (m *Proposal) XXX_DiscardUnknown()
func (*Proposal) XXX_Marshal ¶
func (*Proposal) XXX_Unmarshal ¶
type Reply ¶
type Reply struct { MessageType int32 `protobuf:"varint,1,opt,name=messageType,proto3" json:"messageType,omitempty"` InternalMsgType uint32 `protobuf:"varint,2,opt,name=internalMsgType,proto3" json:"internalMsgType,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The response message returning the output of the consensus engine
func (*Reply) Descriptor ¶
func (*Reply) GetInternalMsgType ¶
func (*Reply) GetMessageType ¶
func (*Reply) ProtoMessage ¶
func (*Reply) ProtoMessage()
func (*Reply) XXX_DiscardUnknown ¶
func (m *Reply) XXX_DiscardUnknown()
func (*Reply) XXX_Marshal ¶
func (*Reply) XXX_Unmarshal ¶
type Request ¶
type Request struct { PlayerID int32 `protobuf:"varint,1,opt,name=playerID,proto3" json:"playerID,omitempty"` InternalMsgType uint32 `protobuf:"varint,2,opt,name=internalMsgType,proto3" json:"internalMsgType,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The request message containing the playerID and the value of the message being fed into the consensus engine
func (*Request) Descriptor ¶
func (*Request) GetInternalMsgType ¶
func (*Request) GetPlayerID ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type SimulatorClient ¶
type SimulatorClient interface { Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (Simulator_PingClient, error) Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (Simulator_InitClient, error) Exit(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) }
SimulatorClient is the client API for Simulator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSimulatorClient ¶
func NewSimulatorClient(cc *grpc.ClientConn) SimulatorClient
type SimulatorServer ¶
type SimulatorServer interface { Ping(*Request, Simulator_PingServer) error Init(*InitRequest, Simulator_InitServer) error Exit(context.Context, *Empty) (*Empty, error) }
SimulatorServer is the server API for Simulator service.
type Simulator_InitClient ¶
type Simulator_InitClient interface { Recv() (*Proposal, error) grpc.ClientStream }
type Simulator_InitServer ¶
type Simulator_InitServer interface { Send(*Proposal) error grpc.ServerStream }
type Simulator_PingClient ¶
type Simulator_PingClient interface { Recv() (*Reply, error) grpc.ClientStream }
type Simulator_PingServer ¶
type Simulator_PingServer interface { Send(*Reply) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.