Documentation
¶
Index ¶
- type Common
- type Follower
- func (c *Follower) Echo(ctx context.Context, req *pb.Payload) (*pb.EchoResponse, error)
- func (c *Follower) Name() string
- func (s *Follower) Prepare(ctx context.Context, req *pb.Payload) (*pb.PrepareResponse, error)
- func (c *Follower) Ready(ctx context.Context, req *pb.ReadyRequest) (*pb.ReadyResponse, error)
- type Leader
- type Mao
- type MaoFollower
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Common ¶
type Common interface { Name() string SendEcho(conn *grpc.ClientConn, merkleProof *pb.MerkleProof, data []byte) error SendReady(conn *grpc.ClientConn, merkleRoot []byte) error pb.ReadyServer pb.EchoServer }
type Follower ¶
type Follower struct { pb.UnimplementedPrepareServer // contains filtered or unexported fields }
func NewFollower ¶
func (*Follower) Ready ¶
func (c *Follower) Ready(ctx context.Context, req *pb.ReadyRequest) (*pb.ReadyResponse, error)
Ready serves ready messages from other nodes
type Leader ¶
type Leader struct { rbc.PrepareClientWrapper // contains filtered or unexported fields }
func (*Leader) Ready ¶
func (c *Leader) Ready(ctx context.Context, req *pb.ReadyRequest) (*pb.ReadyResponse, error)
Ready serves ready messages from other nodes
type Mao ¶
type Mao interface { SendPrepare(conn *grpc.ClientConn, merkleProof *pb.MerkleProof, data []byte) error Common }
type MaoFollower ¶
type MaoFollower interface { pb.PrepareServer Common }
type Message ¶
type Message interface { encoding.BinaryMarshaler }
Click to show internal directories.
Click to hide internal directories.