Documentation ¶
Index ¶
- func RemoveSession(uid uint32)
- func SetSession(uid uint32, s *Session)
- type Session
- func (s *Session) Auth(token string) bool
- func (s *Session) CloseEvent()
- func (s *Session) Push(protocolId uint16, handle interface{})
- func (s *Session) Reader(protocolId uint16, buffer *bytes.Buffer) *bytes.Buffer
- func (s *Session) Recover(err error, stack string)
- func (s *Session) Request(protocolId uint16, handle interface{})
- func (s *Session) Respone(protocolId uint16, handle interface{})
- func (s *Session) User() (uname string, uid uint32)
- func (s *Session) Writer(protocolId uint16, buffer *bytes.Buffer) *bytes.Buffer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveSession ¶
func RemoveSession(uid uint32)
func SetSession ¶
Types ¶
type Session ¶
type Session struct { Conn jaguar.TcpConn `inject:"tcp_conn"` // contains filtered or unexported fields }
func AllSession ¶
func AllSession() (result []*Session)
func GetSession ¶
func NewSession ¶
func NewSession() *Session
func (*Session) CloseEvent ¶
func (s *Session) CloseEvent()
Click to show internal directories.
Click to hide internal directories.