Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicValidator ¶ added in v0.3.76
type BasicValidator struct {
OwnSelfHashHex string
}
type BootstrapNode ¶
func NewBootstrapNode ¶
func NewBootstrapNode( ctx context.Context, privKey ed25519.PrivateKey, psk security.PSK, selfHashHex string, ) (_ *BootstrapNode, err error)
func (*BootstrapNode) GenericStream ¶
func (*BootstrapNode) NodeInfo ¶ added in v0.3.8
func (bn *BootstrapNode) NodeInfo() warpnet.NodeInfo
func (*BootstrapNode) Start ¶
func (bn *BootstrapNode) Start(clientNode ClientNodeStreamer) error
func (*BootstrapNode) Stop ¶
func (bn *BootstrapNode) Stop()
type ClientNodeStreamer ¶
type ConsensusServicer ¶ added in v0.3.76
type ConsensusServicer interface {
AskValidation(data event.ValidationEvent) error
Validate(data []byte, _ warpnet.WarpStream) (any, error)
ValidationResult(data []byte, s warpnet.WarpStream) (any, error)
}
type DiscoveryHandler ¶
type DiscoveryHandler interface {
HandlePeerFound(pi warpnet.WarpAddrInfo)
Run(n discovery.DiscoveryInfoStorer) error
Close()
}
type DistributedHashTableCloser ¶
type DistributedHashTableCloser interface {
Close()
}
type ProviderCloser ¶
type PubSubProvider ¶
type PubSubProvider interface {
Run(m pubsub.PubsubServerNodeConnector, clientNode pubsub.PubsubClientNodeStreamer)
PublishUpdateToFollowers(ownerId string, msg event.Message) (err error)
Close() error
}
Click to show internal directories.
Click to hide internal directories.