Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoPeersConnected is returned if there is no peer connected ErrNoPeersConnected = errors.New("no Peers connected") // ErrNoPeerAddress re returned if peer address is not available ErrNoPeerAddress = errors.New("could not get peer address") )
Functions ¶
func CheckError ¶
func CheckError(log *logging.ZapEventLogger, f func() error)
func CheckErrors ¶
func CheckErrors(fs ...func() error)
Types ¶
type Common ¶
type Common struct {
Repo repo.Repo
Context context.Context
Node Node
// contains filtered or unexported fields
}
Common features for cli commands
type Node ¶
type Node interface {
Stop()
NetworkNotifiee(network.Notifiee)
Bootstrap([]peer.AddrInfo)
NewFloodsubWithProtocols([]protocol.ID, ...pubsub.Option) (*pubsub.PubSub, error)
Peers() []string
Connect(peer.AddrInfo) error
AddrInfo() *peer.AddrInfo
IsOnline() bool
ReplManager() *replication.Manager
IsPeerConnected(string) bool
store.Store
}
Click to show internal directories.
Click to hide internal directories.