Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
Bucket represents NeoFS network map as a graph.
If is a type alias of github.com/nspcc-dev/netmap.Bucket.
type Info ¶
Info represent node information.
It is a type alias of github.com/nspcc-dev/neofs-node/pkg/core/netmap/node.Info.
type NetMap ¶
type NetMap struct {
// contains filtered or unexported fields
}
NetMap represents NeoFS network map with concurrent access support.
func New ¶
func New() *NetMap
New creates and initializes a new NetMap.
Using the NetMap that has been created with new(NetMap) expression (or just declaring a NetMap variable) is unsafe and can lead to panic.
func (*NetMap) AddNode ¶
AddNode adds node information to the network map
If node with provided information is already presented in network map, nothing happens,
func (NetMap) Nodes ¶
Nodes returns node list of the network map.
Changing the result is unsafe and affects the network map.
func (NetMap) Root ¶
Root returns the root bucket of the network map.
Changing the result is unsafe and affects the network map.