state

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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
	// contains filtered or unexported fields
}

func New

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

func NewEncoded

func NewEncoded(state string) State

func (*State) Decode

func (state *State) Decode(secretKey string) error

func (*State) Encode

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

func (*State) Encoded

func (state *State) Encoded() string

Jump to

Keyboard shortcuts

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