Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkInfo ¶ added in v0.16.0
type NetworkInfo interface {
// Must return recent network information in NeoFS API v2 NetworkInfo structure.
//
// If protocol version is <=2.9, MillisecondsPerBlock and network config should be unset.
Dump(*refs.Version) (*netmap.NetworkInfo, error)
}
NetworkInfo encapsulates source of the recent information about the NeoFS network.
type NodeState ¶ added in v0.14.3
type NodeState interface {
// Must return current node state
// in NeoFS API v2 NodeInfo structure.
LocalNodeInfo() (*netmap.NodeInfo, error)
}
NodeState encapsulates information about current node state.
type Server ¶ added in v0.17.0
type Server interface {
LocalNodeInfo(context.Context, *netmap.LocalNodeInfoRequest) (*netmap.LocalNodeInfoResponse, error)
NetworkInfo(context.Context, *netmap.NetworkInfoRequest) (*netmap.NetworkInfoResponse, error)
}
Server is an interface of the NeoFS API Netmap service server
func NewExecutionService ¶
func NewExecutionService(s NodeState, v versionsdk.Version, netInfo NetworkInfo) Server
func NewResponseService ¶
NewResponseService returns netmap service instance that passes internal service call to response service.
func NewSignService ¶
func NewSignService(key *ecdsa.PrivateKey, svc Server) Server
Click to show internal directories.
Click to hide internal directories.