store

package
v0.0.0-...-de42637 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	Path: "tmp/store.db",
}

Functions

This section is empty.

Types

type Options

type Options struct {
	Path string `json:"path"`
}

type Store

type Store struct {
	*bolt.DB
	// contains filtered or unexported fields
}

func New

func New(log *slog.Logger, opts *Options) (*Store, error)

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) (*api.Token, error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, key string, token *api.Token) error

Jump to

Keyboard shortcuts

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