Documentation ¶
Index ¶
- type Chunk
- type Cluster
- type ClusterOptions
- type Node
- func (n *Node) HasChunk(ctx context.Context, c Chunk) (bool, error)
- func (n *Node) Overlay(ctx context.Context) (swarm.Address, error)
- func (n *Node) Peers(ctx context.Context) (peers []swarm.Address, err error)
- func (n *Node) Ping(ctx context.Context, node swarm.Address) (rtt string, err error)
- func (n *Node) UploadChunk(ctx context.Context, c *Chunk) (err error)
- type NodeOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct {
// contains filtered or unexported fields
}
Chunk represents Bee chunk
func NewRandomChunk ¶
NewRandomChunk returns new pseudorandom chunk
func (*Chunk) ClosestNode ¶
ClosestNode returns chunk's closest node of a given set of nodes
type Cluster ¶
type Cluster struct {
Nodes []Node
}
Cluster represents cluster of Bee nodes
func NewCluster ¶
func NewCluster(o ClusterOptions) (c Cluster, err error)
NewCluster returns new cluster
type ClusterOptions ¶
type ClusterOptions struct { APIScheme string APIHostnamePattern string APIDomain string APIInsecureTLS bool DebugAPIScheme string DebugAPIHostnamePattern string DebugAPIDomain string DebugAPIInsecureTLS bool Namespace string Size int }
ClusterOptions represents Bee cluster options
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents Bee node
Click to show internal directories.
Click to hide internal directories.