Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockStore ¶
type BlockStore interface {
Put(height uint64, block []byte) error
Get(height uint64) ([]byte, bool)
}
BlockStore blockchain block store service
type Consensus ¶
type Consensus interface {
GrpcHandle(server *grpc.Server) error // Consensus must implement mxwservice.Service
}
Consensus consensus algorithm service
type Transport ¶
type Transport interface {
// get self peer object
ID() string
// get detected peers
PeerIDs() []string
// get peer by peer id
Peer(id string) Peer
// add peer
AddPeer(peer Peer)
// remove peer by id
RemovePeer(id string)
//
Listener() net.Listener
//
Connect(ctx context.Context, remote string) (net.Conn, error)
}
Transport the maxwell transport protocol
Click to show internal directories.
Click to hide internal directories.