boltstore

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDBStore

type BoltDBStore struct {
	Db         *bolt.DB
	BucketName string
}

func Initialize

func Initialize(dbFileName, bucket_name string) (*BoltDBStore, error)

func (*BoltDBStore) Close

func (s *BoltDBStore) Close() error

func (*BoltDBStore) RetrieveAccessToken

func (s *BoltDBStore) RetrieveAccessToken() (string, error)

func (*BoltDBStore) RetrieveOauthState added in v0.5.0

func (s *BoltDBStore) RetrieveOauthState(state string) (string, error)

func (*BoltDBStore) RetrieveRefreshToken

func (s *BoltDBStore) RetrieveRefreshToken() (string, error)

func (*BoltDBStore) RetrieveVar added in v0.6.0

func (s *BoltDBStore) RetrieveVar(varName string) (varValue string, err error)

func (*BoltDBStore) StoreAccessToken

func (s *BoltDBStore) StoreAccessToken(token string) error

func (*BoltDBStore) StoreOauthState added in v0.5.0

func (s *BoltDBStore) StoreOauthState(state string) error

func (*BoltDBStore) StoreRefreshToken

func (s *BoltDBStore) StoreRefreshToken(token string) error

Jump to

Keyboard shortcuts

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