index

package
v0.0.0-...-0c95711 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashAlg

type HashAlg func() hash.Hash

HashAlg .

type Index

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

func New

func New(opts ...Option) *Index

New .

func (*Index) HMAC

func (i *Index) HMAC(key string, value string) string

HMAC index generation

func (*Index) IntBucket

func (i *Index) IntBucket(key string, num int, allBuckets int) string

IntBucket index generation This will generate an index using a simple method to put the `num` param in a given bucket

type Option

type Option func(*Index)

Option .

func WithCaseInsensitive

func WithCaseInsensitive(enable bool) Option

WithCaseInsensitive .

func WithHashAlg

func WithHashAlg(alg HashAlg) Option

WithHashAlg .

Jump to

Keyboard shortcuts

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