Documentation
¶
Index ¶
- func NewClient(context *core.Context, re *http.Request, liveTime int) *client
- type HttpMessage
- type Server
- type Store
- type User
- func (u *User) Close()
- func (u *User) CreateTime() *time.Time
- func (u *User) GetGroupIds() []string
- func (u *User) GetId() string
- func (u *User) GetMachineId() string
- func (u *User) GetOrderTime() *time.Time
- func (u *User) GetPriority() int
- func (u *User) GetRemoteAddress() string
- func (u *User) GetUsername() string
- func (u *User) LastLiveTime() *time.Time
- func (u *User) SetUsername(username string)
- func (u *User) WriteMessage(iMessage message.IMessage, writeFunc user.WriteCallBackFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpMessage ¶
type Server ¶
type Server struct { core.IHttpServer // contains filtered or unexported fields }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) LoadOrStore ¶
func (*Store) RangeClient ¶
func (s *Store) RangeClient(f func(c *client))
type User ¶
func (*User) CreateTime ¶
func (*User) GetGroupIds ¶
func (*User) GetMachineId ¶ added in v0.1.1
func (*User) GetOrderTime ¶ added in v0.1.1
func (*User) GetPriority ¶ added in v0.1.1
func (*User) GetRemoteAddress ¶
func (*User) GetUsername ¶
func (*User) LastLiveTime ¶
func (*User) SetUsername ¶
func (*User) WriteMessage ¶
func (u *User) WriteMessage(iMessage message.IMessage, writeFunc user.WriteCallBackFunc)
Click to show internal directories.
Click to hide internal directories.