state

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid state")

Functions

This section is empty.

Types

type ClientIdentifier added in v1.8.0

type ClientIdentifier struct {
	CID                  uint64
	KID                  uint64
	SessionID            string
	AuthFailedReasonFile string
	AuthControlFile      string
}

type State

type State struct {
	Client     ClientIdentifier
	IPAddr     string
	IPPort     string
	CommonName string
	Issued     int64
}

func New

func New(client ClientIdentifier, ipAddr, ipPort, commonName string) State

func NewWithEncodedToken added in v1.20.1

func NewWithEncodedToken(encodedState, secretKey string) (State, error)

func (*State) Encode

func (state *State) Encode(secretKey string) (string, error)

Jump to

Keyboard shortcuts

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