storage

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenID added in v0.28.0

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 added in v0.28.0

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

NewPrivateToken returns new private token based on the passed values.

func (*PrivateToken) ExpiredAt added in v0.26.1

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