Help us shape the future of Go! Take the 2026 Go Developer Survey

netmap

package
v0.46.12 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkInfo

type NetworkInfo interface {
	// Dump must return recent network information in FrostFS API v2 NetworkInfo structure.
	//
	// If protocol version is <=2.9, MillisecondsPerBlock and network config should be unset.
	Dump(context.Context, versionsdk.Version) (*netmapSDK.NetworkInfo, error)
}

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

type NodeState

type NodeState interface {
	// LocalNodeInfo must return current node state
	// in FrostFS API v2 NodeInfo structure.
	LocalNodeInfo() *netmapSDK.NodeInfo

	// 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

Server is an interface of the FrostFS API Netmap service server.

func NewExecutionService

func NewExecutionService(s NodeState, v versionsdk.Version, netInfo NetworkInfo, respSvc *response.Service) Server

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