state

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 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 State

type State struct {
	Cid        uint64 `json:"cid"`
	Kid        uint64 `json:"kid"`
	Ipaddr     string `json:"ipaddr"`
	CommonName string `json:"common_name"`

	Encoded string
}

func New

func New(cid, kid uint64, ipaddr, 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

Jump to

Keyboard shortcuts

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