saltmanager

package
v0.18.0-beta03 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Salt

type Salt [16]byte

func (Salt) Bytes

func (s Salt) Bytes() []byte

Bytes convert salt to bytes.

type Service

type Service interface {
	// DailySalt returns today's salt.
	DailySalt() Salt
	// StaticSalt returns same salt until end of program.
	StaticSalt() Salt
}

Service define a hashing salt manager.

func ProvideService

func ProvideService(logger zerolog.Logger) Service

ProvideService is a wire provider for hashing salt manager service.

Jump to

Keyboard shortcuts

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