cache

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUserCache

type AuthUserCache struct {
	model.CacheModel
	// contains filtered or unexported fields
}

func NewAuthUserCache

func NewAuthUserCache() *AuthUserCache

func (*AuthUserCache) Forget

func (mdl *AuthUserCache) Forget(token string) error

func (*AuthUserCache) Get

func (mdl *AuthUserCache) Get(token string) (*AuthUserData, bool, error)

func (*AuthUserCache) Set

func (mdl *AuthUserCache) Set(uid uint64) (string, error)

type AuthUserData

type AuthUserData struct {
	UID uint64 `json:"uid"`
}

Jump to

Keyboard shortcuts

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