tokens

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTokenIDDuplicates means token names duplicate
	ErrTokenIDDuplicates = xerrors.New("token names duplicate")

	// ErrUnknownToken means unknown token
	ErrUnknownToken = xerrors.New("unknown token")
)

Functions

This section is empty.

Types

type TokenStore

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

func NewTokenStore

func NewTokenStore(db sqlx.ExtContext) *TokenStore

func (*TokenStore) AddToken

func (ss *TokenStore) AddToken(s *types.Token) (seq int, token string, err error)

func (*TokenStore) FindTokenByID

func (ss *TokenStore) FindTokenByID(owner string, id string) (*types.Token, error)

func (*TokenStore) FindTokenByToken

func (ss *TokenStore) FindTokenByToken(token string) (*types.Token, error)

func (*TokenStore) GetToken

func (ss *TokenStore) GetToken(seq int) (*types.Token, error)

Jump to

Keyboard shortcuts

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