cache

package
v0.0.0-...-6d5e59d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 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 Cache

type Cache interface {
	Code() CodeCache
	Token() TokenCache
}

type CodeCache

type CodeCache interface {
	Create(ctx context.Context, code string, value *CodeValue) error
	Delete(ctx context.Context, code string) error
	Get(ctx context.Context, code string) (*CodeValue, error)
}

type CodeValue

type CodeValue struct {
	Email string
}

type TokenCache

type TokenCache interface {
	Create(ctx context.Context, token string, value *TokenValue) error
	Get(ctx context.Context, token string) (*TokenValue, error)
	Delete(ctx context.Context, token string) error
}

type TokenValue

type TokenValue struct {
	UserID uint64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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