consensus_types

package
v4.2.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNilObjectWrapped is returned in a constructor when the underlying object is nil.
	ErrNilObjectWrapped = errors.New("attempted to wrap nil object")
	// ErrUnsupportedField is returned when a getter/setter access is not supported.
	ErrUnsupportedField = errors.New("unsupported getter")
	// ErrOutOfBounds is returned when a slice or array index does not exist.
	ErrOutOfBounds = errors.New("index out of bounds")
)

Functions

func ErrNotSupported

func ErrNotSupported(funcName string, ver int) error

ErrNotSupported constructs a message informing about an unsupported field access.

Types

type ThreadSafeEnumerator added in v4.1.0

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

ThreadSafeEnumerator is a thread-safe counter of all objects created since the node's start.

func (*ThreadSafeEnumerator) Inc added in v4.1.0

func (c *ThreadSafeEnumerator) Inc() uint64

Inc increments the enumerator and returns the new object count.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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