models

package
v0.0.0-...-454afca Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NameMap cmap.ConcurrentMap
)

Functions

func GetAuthKey

func GetAuthKey(name string) string

func InitModel

func InitModel()

func SetUser

func SetUser(u UserInfo)

Types

type UserInfo

type UserInfo struct {
	Name string
}

func GetUser

func GetUser(key string) (UserInfo, bool)

func NewUser

func NewUser(name string) UserInfo

Jump to

Keyboard shortcuts

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