hash

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrWrapper

func ErrWrapper(err Err) error

Types

type Err

type Err int
const (
	UnknownErrCode Err = iota
	IllegalKeyType     //Illegal KeyType
)

func (Err) String

func (i Err) String() string

type Generator

type Generator interface {
	Calc(KeyType, []byte) (string, error)
}

func NewGenerator

func NewGenerator(opts ...OptionFunc) (Generator, error)

type KeyType

type KeyType int
const (
	UnknownKeyType KeyType = iota
	MD5
	SHA1
)

func (KeyType) String

func (i KeyType) String() string

type OptionFunc added in v0.0.46

type OptionFunc func(*generator)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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