Versions in this module Expand all Collapse all v1 v1.21.6 Jul 21, 2024 Changes in this version + var ErrInvalid = errors.New("invalid state") + type ClientIdentifier struct + AuthControlFile string + AuthFailedReasonFile string + CID uint64 + KID uint64 + SessionID string + UsernameIsDefined int + type State struct + Client ClientIdentifier + CommonName string + IPAddr string + IPPort string + Issued int64 + func New(client ClientIdentifier, ipAddr, ipPort, commonName string) State + func NewWithEncodedToken(encodedState, secretKey string) (State, error) + func (state *State) Encode(secretKey string) (string, error)