Documentation ¶
Index ¶
- Constants
- type Mode
- type User
- func (u *User) AwayMsg() string
- func (u *User) ClearMode(m Mode)
- func (u *User) Close()
- func (u *User) EnterStatus(s int)
- func (u *User) Full() string
- func (u *User) IsAway() bool
- func (u *User) IsDisconnecting() bool
- func (u *User) IsPasswordVerified() bool
- func (u *User) IsRegistered() bool
- func (u *User) MarkAway(b bool)
- func (u *User) MarkMode(m Mode)
- func (u *User) Modes() string
- func (u *User) SendErrorNeedMoreParams(c string)
- func (u *User) SendMessage(m *message.Message)
- func (u *User) SendMotd()
- func (u *User) SendWelcomeMessage()
- func (u *User) SetAwayMsg(s string)
- func (u *User) Status() int
Constants ¶
View Source
const ( StatusPasswordNotVerified = iota StatusPasswordVerified StatusNotRegistered StatusRegistered StatusDisconnecting )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Config *config.Config // Global Server Config Conn net.Conn // Original TCP connection Id int UserName string NickName string RealName string HostName string // Hostname this user try to connect LastPongTime int64 // Last time this user reply a PONG message In chan []byte Out chan []byte // contains filtered or unexported fields }
func (*User) EnterStatus ¶
func (*User) IsDisconnecting ¶
func (*User) IsPasswordVerified ¶
func (*User) IsRegistered ¶
func (*User) SendErrorNeedMoreParams ¶
func (*User) SendMessage ¶
func (*User) SendWelcomeMessage ¶
func (u *User) SendWelcomeMessage()
func (*User) SetAwayMsg ¶
Click to show internal directories.
Click to hide internal directories.