hash

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 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 ...Option) (Generator, error)

type KeyType

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

func (KeyType) String

func (i KeyType) String() string

type Option

type Option interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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