daos

package
v0.0.0-...-d0eaca5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisClient

func GetRedisClient() *redis.Client

GetRedisClient : return redis client

func Init

func Init(conf *config.Config) error

Init : init redis

Types

type User

type User struct {
}

User : struct

func NewUser

func NewUser() *User

NewUser :

func (*User) GetUser

func (u *User) GetUser(ID uint32) (interface{}, error)

GetUser : id

func (*User) SetUser

func (u *User) SetUser(key uint32, user interface{}) error

SetUser : key, user

Jump to

Keyboard shortcuts

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