contexts

package
v0.0.0-...-c10dfd5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisContext

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

RedisContext ...

func NewRedisContext

func NewRedisContext() *RedisContext

NewRedisContext ...

func (*RedisContext) Get

func (context *RedisContext) Get(id string) ([]byte, error)

Get ...

func (*RedisContext) GetUser

func (context *RedisContext) GetUser(sub string) (*entities.User, error)

GetUser ...

func (*RedisContext) Set

func (context *RedisContext) Set(id string, val interface{}, exp time.Duration) error

Set ...

func (*RedisContext) SetUser

func (context *RedisContext) SetUser(user *entities.User) error

SetUser ...

Jump to

Keyboard shortcuts

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