storage

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotExists = errors.New("value does not exist")

Functions

This section is empty.

Types

type Storage

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

func New

func New(encryptionKey string, expires time.Duration) *Storage

func (*Storage) Delete

func (s *Storage) Delete(client uint64)

func (*Storage) Get

func (s *Storage) Get(client uint64) (string, error)

func (*Storage) Set

func (s *Storage) Set(client uint64, token string) error

Jump to

Keyboard shortcuts

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