Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenNotFound = errors.Warning("tokens: token was not found")
)
Functions ¶
Types ¶
type RemoveParam ¶
type Store ¶
type Store interface { Build(options StoreOptions) (err error) Save(ctx context.Context, param SaveParam) (err errors.CodeError) Remove(ctx context.Context, param RemoveParam) (err errors.CodeError) Get(ctx context.Context, id string) (token Token, has bool, err errors.CodeError) List(ctx context.Context, userId string) (tokens []Token, err errors.CodeError) Close() }
type StoreOptions ¶ added in v1.0.30
Click to show internal directories.
Click to hide internal directories.