storage

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 6 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(ctx context.Context, encryptionKey string, expires time.Duration) *Storage

func (*Storage) Delete

func (s *Storage) Delete(client string)

func (*Storage) Get

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

func (*Storage) Set

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

Jump to

Keyboard shortcuts

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