hashid_tokenizer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHashidTokenizer

func NewHashidTokenizer(cfg *config.HashidTokenizerConfig) (app.Tokenizer, error)

Types

type HashidTokenizer

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

func (*HashidTokenizer) Decode

func (htz *HashidTokenizer) Decode(key string) (int, error)

func (*HashidTokenizer) Encode

func (htz *HashidTokenizer) Encode(id int) (string, error)

Jump to

Keyboard shortcuts

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