consensus_types

package
v4.0.0-...-b8b0360 Latest Latest
Warning

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

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

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

Types

type ThreadSafeEnumerator

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

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