Documentation
¶
Index ¶
- func AssertKeyAtLeastLength(bz []byte, length int)
- func AssertKeyLength(bz []byte, length int)
- func EncodeWithLengthPrefix(bz []byte) ([]byte, error)
- func IsDomainName(s string) bool
- func KeyAtLeastLength(bz []byte, length int) error
- func KeyLength(bz []byte, length int) error
- func MustEncodeWithLengthPrefix(bz []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertKeyAtLeastLength ¶
AssertKeyAtLeastLength panics when store key length is less than the given length.
func AssertKeyLength ¶
AssertKeyLength panics when store key length is not equal to the given length.
func EncodeWithLengthPrefix ¶
func IsDomainName ¶
IsDomainName checks if a string is a presentation-format domain name (currently restricted to hostname-compatible "preferred name" LDH labels and SRV-like "underscore labels"; see golang.org/issue/12421).
func KeyAtLeastLength ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.