index

package
v0.0.0-...-7cd6fd4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key []byte

Key is a byte slice describing a key used in an index by statedb.

func Bool

func Bool(b bool) Key

func Int

func Int(n int) Key

func Int16

func Int16(n int16) Key

func Int32

func Int32(n int32) Key

func Int64

func Int64(n int64) Key

func NetIP

func NetIP(ip net.IP) Key

func NetIPAddr

func NetIPAddr(addr netip.Addr) Key

func NetIPPrefix

func NetIPPrefix(prefix netip.Prefix) Key

func String

func String(s string) Key

func Stringer

func Stringer[T fmt.Stringer](s T) Key

func Uint16

func Uint16(n uint16) Key

func Uint32

func Uint32(n uint32) Key

func Uint64

func Uint64(n uint64) Key

func (Key) Equal

func (k Key) Equal(k2 Key) bool

type KeySet

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

func NewKeySet

func NewKeySet(keys ...Key) KeySet

func Set

func Set[T any](s part.Set[T]) KeySet

Set creates a KeySet from a part.Set.

func StringMap

func StringMap[V any](m map[string]V) KeySet

func StringSlice

func StringSlice(ss []string) KeySet

func StringerSlice

func StringerSlice[T fmt.Stringer](ss []T) KeySet

func (KeySet) Exists

func (ks KeySet) Exists(k Key) bool

func (KeySet) First

func (ks KeySet) First() Key

func (KeySet) Foreach

func (ks KeySet) Foreach(fn func(Key))

Jump to

Keyboard shortcuts

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