generator

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct{}

Generator is responsible for randomly generating new strings and tokens that might need to be mocked out to produce consistent output for tests

func New

func New() *Generator

New returns a new Generator

func (*Generator) NewPSK

func (g *Generator) NewPSK() ([]byte, error)

NewPSK returns a new random array of 16 bytes

func (*Generator) Timestamp added in v1.0.0

func (g *Generator) Timestamp() time.Time

Timestamp generates a timestamp of the current time

Jump to

Keyboard shortcuts

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