Documentation
¶
Index ¶
- type Key
- func Bool(b bool) Key
- func BoolString(s string) (Key, error)
- func FromString(s string) (Key, error)
- func Int(n int) Key
- func Int16(n int16) Key
- func Int16String(s string) (Key, error)
- func Int32(n int32) Key
- func Int32String(s string) (Key, error)
- func Int64(n int64) Key
- func Int64String(s string) (Key, error)
- func IntString(s string) (Key, error)
- func NetIP(ip net.IP) Key
- func NetIPAddr(addr netip.Addr) Key
- func NetIPAddrString(s string) (Key, error)
- func NetIPPrefix(prefix netip.Prefix) Key
- func NetIPPrefixString(s string) (Key, error)
- func String(s string) Key
- func Stringer[T fmt.Stringer](s T) Key
- func Uint16(n uint16) Key
- func Uint16String(s string) (Key, error)
- func Uint32(n uint32) Key
- func Uint32String(s string) (Key, error)
- func Uint64(n uint64) Key
- func Uint64String(s string) (Key, error)
- type KeySet
- func NewKeySet(keys ...Key) KeySet
- func Seq[T any](toKey func(T) Key, seq iter.Seq[T]) KeySet
- func Seq2[A, B any](toKey func(A) Key, seq iter.Seq2[A, B]) KeySet
- func Set[T any](s part.Set[T]) KeySet
- func StringMap[V any](m map[string]V) KeySet
- func StringSlice(ss []string) KeySet
- func StringerSeq[T fmt.Stringer](seq iter.Seq[T]) KeySet
- func StringerSeq2[A fmt.Stringer, B any](seq iter.Seq2[A, B]) KeySet
- func StringerSlice[T fmt.Stringer](ss []T) KeySet
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 BoolString ¶ added in v0.3.1
func FromString ¶ added in v0.3.1
func Int16String ¶ added in v0.3.1
func Int32String ¶ added in v0.3.1
func Int64String ¶ added in v0.3.1
func NetIPAddrString ¶ added in v0.3.1
func NetIPPrefix ¶
func NetIPPrefixString ¶ added in v0.3.1
func Uint16String ¶ added in v0.3.1
func Uint32String ¶ added in v0.3.1
func Uint64String ¶ added in v0.3.1
type KeySet ¶
type KeySet struct {
// contains filtered or unexported fields
}
func Seq ¶ added in v0.3.0
Seq creates a KeySet from an iter.Seq[T] with the given indexing function. Example usage:
var strings iter.Seq[string] keys := Seq[string](index.String, strings)
func Seq2 ¶ added in v0.3.0
Seq2 creates a KeySet from an iter.Seq2[A,B] with the given indexing function. Example usage:
var seq iter.Seq2[string, int] keys := Seq2(index.String, seq)
func StringSlice ¶
func StringerSeq2 ¶ added in v0.3.0
func StringerSlice ¶
Click to show internal directories.
Click to hide internal directories.