store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirTokenStore

type DirTokenStore string

DirTokenStore provides filesystem storage for arbitrary tokens, keyed by URL. The value of the DirTokenStore is the directory in which the tokens are stored, if this directory does not exist it will be created when required.

func (DirTokenStore) Get

func (s DirTokenStore) Get(_ context.Context, url string) ([]byte, error)

Get retrieves the token stored for the given URL, if present.

func (DirTokenStore) Set

func (s DirTokenStore) Set(_ context.Context, url string, token []byte) error

Set stores the given token for the given URL.

Jump to

Keyboard shortcuts

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