bootstrap

package
v0.3.111 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapNode

type BootstrapNode struct {
	// contains filtered or unexported fields
}

func NewBootstrapNode

func NewBootstrapNode(
	ctx context.Context,
	privKey ed25519.PrivateKey,
	psk security.PSK,
	selfHashHex string,
) (_ *BootstrapNode, err error)

func (*BootstrapNode) GenericStream

func (bn *BootstrapNode) GenericStream(nodeIdStr string, path stream.WarpRoute, data any) (_ []byte, err error)

func (*BootstrapNode) Network added in v0.3.110

func (bn *BootstrapNode) Network() warpnet.WarpNetwork

func (*BootstrapNode) Node added in v0.3.110

func (bn *BootstrapNode) Node() warpnet.P2PNode

func (*BootstrapNode) NodeInfo added in v0.3.8

func (bn *BootstrapNode) NodeInfo() warpnet.NodeInfo

func (*BootstrapNode) Peerstore added in v0.3.110

func (bn *BootstrapNode) Peerstore() warpnet.WarpPeerstore

func (*BootstrapNode) SimpleConnect added in v0.3.110

func (bn *BootstrapNode) SimpleConnect(info warpnet.WarpAddrInfo) error

func (*BootstrapNode) Start

func (bn *BootstrapNode) Start() error

func (*BootstrapNode) Stop

func (bn *BootstrapNode) Stop()

type ClientNodeStreamer

type ClientNodeStreamer interface {
	ClientStream(nodeId string, path string, data any) (_ []byte, err 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 ProviderCloser interface {
	io.Closer
}

type PubSubProvider

type PubSubProvider interface {
	Run(m pubsub.PubsubServerNodeConnector, clientNode pubsub.PubsubClientNodeStreamer)
	PublishUpdateToFollowers(ownerId string, msg event.Message) (err error)
	Close() error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL