Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCharacter ¶
func NewCharacter() (c *Character)
func NewUserInfo ¶
func NewUserInfo(userName string) (u *UserInfo)
Types ¶
type User ¶
func (*User) SetCharacter ¶
type UserManager ¶
var Manager *UserManager
func NewUserManager ¶
func NewUserManager(db storage.Db) *UserManager
func (*UserManager) GetUserInfo ¶
func (um *UserManager) GetUserInfo(id int64) *UserInfo
func (*UserManager) Login ¶
func (um *UserManager) Login(in *LoginInput) (*UserInfo, error)
func (*UserManager) Logout ¶
func (um *UserManager) Logout(userId int64)
func (*UserManager) Regist ¶
func (um *UserManager) Regist(in *RegistInput) (*Error, error)
Click to show internal directories.
Click to hide internal directories.