Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerService = rpc.NewService(nil).
On("Create", createServer).
On("List", listServers).
On("Delete", deleteServer)
View Source
var UserService = rpc.NewService(rpc.Map{"manager": NewUserManager()}).
On("$onTimer", onTimer).
On("Create", createUser).
On("Login", login).
On("IsInitialized", isInitialized).
On("getNameBySessionID", getNameBySessionID)
Functions ¶
This section is empty.
Types ¶
type UserManager ¶
type UserManager struct {
// contains filtered or unexported fields
}
func NewUserManager ¶
func NewUserManager() *UserManager
func (*UserManager) AddUser ¶
func (p *UserManager) AddUser(user *User)
func (*UserManager) OnTimer ¶
func (p *UserManager) OnTimer(timeout time.Duration)
Click to show internal directories.
Click to hide internal directories.