mock

package
v0.0.0-...-3eb4ebe Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token = &token.Token{
	PlainText: "GAJPGPWLD6KISED2QS34A6ERWU",
	Hash:      []byte("75c1ea94931bfefe90b8684ca17220a3bf8813aef074c91226bc8fafacd55fb3"),
	UserID:    22,
	Expiry:    time.Time{},
	Scope:     token.ScopeAuthentication,
}

Functions

This section is empty.

Types

type SerializableStore

type SerializableStore interface {
	Get(ctx context.Context, sessionTokenHash string) (token.Token, error)
	Set(ctx context.Context, sessionToken *token.Token) error
	Delete(ctx context.Context, token string) error
}

func CustomRedisStore

func CustomRedisStore(_ context.Context) SerializableStore

Jump to

Keyboard shortcuts

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