Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶ added in v0.45.0
func New(s *ecdsa.PrivateKey, c Contract) protonetmap.NetmapServiceServer
New provides protocontainer.NetmapServiceServer based on specified Contract.
All response messages are signed using specified signer and have current epoch in the meta header.
Types ¶
type Contract ¶ added in v0.45.0
type Contract interface {
netmapcore.State
// LocalNodeInfo returns local node's settings along with its network status.
LocalNodeInfo() (netmap.NodeInfo, error)
// GetNetworkInfo returns the current network configuration.
GetNetworkInfo() (netmap.NetworkInfo, error)
// GetNetworkMap current network map.
GetNetworkMap() (netmap.NetMap, error)
}
Contract groups ops of the Netmap contract deployed in the FS chain required to serve NeoFS API Netmap service.
Click to show internal directories.
Click to hide internal directories.