seikan

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KDFLength = 48
)

KDF global configuration.

Variables

View Source
var ErrNotRetayable = errors.New("not retryable")

ErrNotRetayable is used when it's not used to perform a retry.

Functions

func CraftKey

func CraftKey(args ...string) string

CraftKey builds a dot separated key of the given args.

func IsRetryNewError

func IsRetryNewError(prev, err error) bool

IsRetryNewError returns true if the err is different from prev.

func KDFCompare

func KDFCompare(payload []byte, s string) bool

KDFCompare returns true if the hased payload match the given s.

func KDFGenerate

func KDFGenerate(s string) ([]byte, error)

KDFGenerate generates a safe derivation hash of the given s.

func Retry

func Retry(h func(error) error)

Retry applies an exponential backoff if h returns an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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