netmap

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 11 Imported by: 1

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 {
	// Dump 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(versionsdk.Version) (*netmapSDK.NetworkInfo, error)
}

NetworkInfo encapsulates source of the recent information about the NeoFS network.

type NodeState added in v0.14.3

type NodeState interface {
	// LocalNodeInfo must return current node state
	// in NeoFS API v2 NodeInfo structure.
	LocalNodeInfo() (*netmap.NodeInfo, error)

	// ReadCurrentNetMap reads current local network map of the storage node
	// into the given parameter. Returns any error encountered which prevented
	// the network map to be read.
	ReadCurrentNetMap(*netmap.NetMap) error
}

NodeState encapsulates information about current node state.

type Server added in v0.17.0

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

func NewResponseService(nmSvc Server, respSvc *response.Service) Server

NewResponseService returns netmap service instance that passes internal service call to response service.

func NewSignService

func NewSignService(key *ecdsa.PrivateKey, svc Server) Server

Jump to

Keyboard shortcuts

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