types

package
v0.0.0-...-c5f9841 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package types define all common types

Index

Constants

View Source
const (
	Wechat = "wechat"
	YX     = "yx"
	Test   = "test" //测试SDK

)
View Source
const (
	Android = "android"
	IOS     = "ios"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer func()

Closer the close handler

type UserMeta

type UserMeta struct {
	Role  int    `redis:"role"`
	Uid   int64  `redis:"uid"`
	AppID string `redis:"appid"`
}

UserMeta user's meta info

func (*UserMeta) RoleIsAdmin

func (um *UserMeta) RoleIsAdmin() bool

RoleIsSnake check the user's role is admin or not

func (*UserMeta) UID

func (um *UserMeta) UID() int64

UID return the user's uid

Jump to

Keyboard shortcuts

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