redis

package
v0.0.0-...-9b4f6c4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisNoUser = 100
)

TODO: maybe we drop it

Variables

This section is empty.

Functions

func Connect

func Connect() error

func SetUserSession

func SetUserSession(key string, user *models.User) error

Types

type UserSession

type UserSession struct {
	UserId int `json:"userId"`
}

func GetUserSession

func GetUserSession(key string) (*UserSession, error)

Jump to

Keyboard shortcuts

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