state

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker interface {
	Name() string
	Healthy() bool
}

HealthChecker is an interface of node healthiness checking tool.

type HealthRequest

type HealthRequest = state.HealthRequest

HealthRequest is a type alias of HealthRequest from state package of neofs-api-go.

type Params

type Params struct {
	Stater Stater

	Logger *zap.Logger

	Viper *viper.Viper

	Checkers []HealthChecker

	PrivateKey *ecdsa.PrivateKey

	MorphNetmapContract *implementations.MorphNetmapContract
}

Params groups the parameters of State service server's constructor.

type Service

type Service interface {
	state.StatusServer
	grpc.Service
	Healthy() error
}

Service is an interface of the server of State service.

func New

func New(p Params) (Service, error)

New is an State service server's constructor.

type Stater

type Stater interface {
	NetworkState() *bootstrap.SpreadMap
}

Stater is an interface of the node's network state storage with read access.

Jump to

Keyboard shortcuts

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