hashid

package
v0.0.0-...-96504fd Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptID

func DecryptID(hashI *HashID, hid string) (int64, error)

func EncryptID

func EncryptID(hashI *HashID, id int64) (string, error)

func Set

func Set(name, salt string, minLength ...int) error

Types

type HashID

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

func Get

func Get(name string) (*HashID, bool)

func New

func New(salt string, MinLength int) *HashID

Jump to

Keyboard shortcuts

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