model

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CfgPath = ""

Functions

func GetName added in v1.9.0

func GetName() string

func GetNameBad added in v1.9.0

func GetNameBad() string

func GetRedisKey

func GetRedisKey(uid int64) string

func GetSex added in v1.9.0

func GetSex() int64

func GetSexBad added in v1.9.0

func GetSexBad() int64

func GetUid

func GetUid() int64

func GetUidBad added in v1.9.0

func GetUidBad() int64

for test

func GetUidMax

func GetUidMax() int64

func InitUidGenerator

func InitUidGenerator()

func MakePongMsg added in v1.9.1

func MakePongMsg(s string) string

func SetUidMax

func SetUidMax(max int64)

func StrInt added in v1.9.0

func StrInt(sex int64) string

Types

type Ping added in v1.6.0

type Ping struct {
	Type  string
	Count int64
}

type User

type User struct {
	Uid  int64  `redis:"uid" validate:"required,gte=0"`
	Name string `redis:"name" validate:"required,min=1,max=18"`
	Sex  int64  `redis:"sex" validate:"required,gte=1,lte=2"`
}

func GetUser added in v1.9.0

func GetUser() *User

Jump to

Keyboard shortcuts

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