nodevalidation

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompositeValidator

type CompositeValidator struct {
	// contains filtered or unexported fields
}

CompositeValidator wraps `netmap.NodeValidator`s.

For correct operation, CompositeValidator must be created using the constructor (New). After successful creation, the CompositeValidator is immediately ready to work through API.

func New

func New(validators ...netmap.NodeValidator) *CompositeValidator

New creates a new instance of the CompositeValidator.

The created CompositeValidator does not require additional initialization and is completely ready for work.

func (*CompositeValidator) Verify added in v0.39.0

Verify passes apinetmap.NodeInfo to wrapped validators.

If error appears, returns it immediately.

Directories

Path Synopsis
Package state collects functionality for verifying states of network map members.
Package state collects functionality for verifying states of network map members.

Jump to

Keyboard shortcuts

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