Versions in this module Expand all Collapse all v0 v0.0.1 May 14, 2020 Changes in this version + type Common interface + Name func() string + SendEcho func(conn *grpc.ClientConn, merkleProof *pb.MerkleProof, data []byte) error + SendReady func(conn *grpc.ClientConn, merkleRoot []byte) error + type Follower struct + func NewFollower(name string) Follower + func (c *Follower) Echo(ctx context.Context, req *pb.Payload) (*pb.EchoResponse, error) + func (c *Follower) Name() string + func (c *Follower) Ready(ctx context.Context, req *pb.ReadyRequest) (*pb.ReadyResponse, error) + func (s *Follower) Prepare(ctx context.Context, req *pb.Payload) (*pb.PrepareResponse, error) + type Leader struct + func NewLeader(name string) Leader + func (c *Leader) Echo(ctx context.Context, req *pb.Payload) (*pb.EchoResponse, error) + func (c *Leader) Name() string + func (c *Leader) Ready(ctx context.Context, req *pb.ReadyRequest) (*pb.ReadyResponse, error) + type Mao interface + SendPrepare func(conn *grpc.ClientConn, merkleProof *pb.MerkleProof, data []byte) error + type MaoFollower interface + type Message interface