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) VerifyAndUpdate ¶
func (c *CompositeValidator) VerifyAndUpdate(ni *apinetmap.NodeInfo) error
VerifyAndUpdate 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. |
Click to show internal directories.
Click to hide internal directories.