strk

package
v0.0.0-...-b33c24c Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket2str

type Bucket2str func(k kv.Key) kv.Either[string, error]

type Id2str

type Id2str func(k kv.Key) kv.Either[string, error]

func Id2strNew

func Id2strNew(vi ValidateId) Id2str

type ValidateBucket

type ValidateBucket func(k kv.Key) (valid bool)
var ValidateBucketUtf8 ValidateBucket = ValidateBucketNew(ValidUtf8Str)

func ValidateBucketNew

func ValidateBucketNew(vs ValidateString) ValidateBucket

type ValidateBytes

type ValidateBytes func([]byte) (valid bool)
var ValidUtf8 ValidateBytes = utf8.Valid

type ValidateId

type ValidateId func(k kv.Key) (valid bool)
var ValidateIdUtf8 ValidateId = ValidateIdNew(ValidUtf8)

func ValidateIdLowerBound

func ValidateIdLowerBound(bucket int, id int) ValidateId

func ValidateIdNew

func ValidateIdNew(vb ValidateBytes) ValidateId

func (ValidateId) Concat

func (v ValidateId) Concat(other ValidateId) ValidateId

type ValidateString

type ValidateString func(string) (valid bool)
var ValidUtf8Str ValidateString = utf8.ValidString

Jump to

Keyboard shortcuts

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