sesskeygen

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Default

type Default struct{}

Default represents a default implementation of SessionKeyGenerator

func (*Default) Generate

func (gen *Default) Generate() string

Generate implements the SessionKeyGenerator interface

type SessionKeyGenerator

type SessionKeyGenerator interface {
	// Generates a new cryptographically safe session key
	Generate() string
}

SessionKeyGenerator defines the session key generator interface

func NewDefault

func NewDefault() SessionKeyGenerator

NewDefault creates a new default session key generator instance

Jump to

Keyboard shortcuts

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