storage

package
v0.38.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenID

func NewTokenID() ([]byte, error)

NewTokenID generates new ID for a token based on UUID.

Types

type PrivateToken

type PrivateToken struct {
	// contains filtered or unexported fields
}

PrivateToken represents private session info.

func NewPrivateToken

func NewPrivateToken(sk *ecdsa.PrivateKey, exp uint64) *PrivateToken

NewPrivateToken returns new private token based on the passed values.

func (*PrivateToken) ExpiredAt

func (t *PrivateToken) ExpiredAt() uint64

ExpiredAt returns epoch number until token is valid.

func (*PrivateToken) SessionKey

func (t *PrivateToken) SessionKey() *ecdsa.PrivateKey

SessionKey returns the private session key.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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