services

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPRNGService

type CPRNGService interface {
	GetRandomBytes(n uint32) []byte
	GetRandomUint32() uint32
	GetRandomReader() io.Reader
}

func NewCPRNGService

func NewCPRNGService() CPRNGService

type IDService

type IDService interface {
	NewStringID() string
	NewKeyID() types.KeyID
}

func NewIDGenerationService

func NewIDGenerationService(randomService CPRNGService) IDService

Jump to

Keyboard shortcuts

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