user_tbl

package
v0.0.0-...-254d333 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2015 License: MIT Imports: 8 Imported by: 0

README

用户基本信息表

Documentation

Index

Constants

View Source
const (
	COLLECTION   = "USERS"
	COUNTER_NAME = "USERID_GEN"
)

Variables

This section is empty.

Functions

func Get

func Get(id int32) *User

---------------------------------------------------------- load a user

func GetAll

func GetAll() []User

---------------------------------------------------------- load all userss

func LoginMac

func LoginMac(name, mac string) *User

---------------------------------------------------------- login with name & mac address

func New

func New(name, mac string) *User

---------------------------------------------------------- create a new user

func Query

func Query(name string) *User

---------------------------------------------------------- query a user by name

func Set

func Set(user *User) bool

---------------------------------------------------------- update a user

Types

This section is empty.

Jump to

Keyboard shortcuts

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