jwtutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Log     *log.Logger
	Config  *Flags
	Cryptor Cryptor
}

App is a package general type

func New

func New(logger *log.Logger, cfg *Flags, options ...func(a *App) error) (*App, error)

New creates mailer object Configuration should be set via functional options

type Cryptor

type Cryptor interface {
	Decode(name, value string, dst interface{}) error
	Encode(name string, value interface{}) (string, error)
}

type Flags

type Flags struct {
	AppKey   string `long:"psw_session_key" description:"Key to encode user session (default: random key reset on restart)"`
	BlockKey string `long:"psw_block_key" default:"T<8rYvXmgLBdND(YW}3QRcLwh4$4P5eq" description:"Key to encode session blocks (16,32 or 62 byte)"`
}

Flags is a package flags sample in form ready for use with github.com/jessevdk/go-flags

Jump to

Keyboard shortcuts

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