plugins

package
v0.0.0-...-6ce5e98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveSession

func RemoveSession(uid uint32)

func SetSession

func SetSession(uid uint32, s *Session)

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 GetSession(uid uint32) *Session

func NewSession

func NewSession() *Session

func (*Session) Auth

func (s *Session) Auth(token string) bool

func (*Session) CloseEvent

func (s *Session) CloseEvent()

func (*Session) Push

func (s *Session) Push(protocolId uint16, handle interface{})

func (*Session) Reader

func (s *Session) Reader(protocolId uint16, buffer *bytes.Buffer) *bytes.Buffer

func (*Session) Recover

func (s *Session) Recover(err error, stack string)

func (*Session) Request

func (s *Session) Request(protocolId uint16, handle interface{})

func (*Session) Respone

func (s *Session) Respone(protocolId uint16, handle interface{})

func (*Session) User

func (s *Session) User() (uname string, uid uint32)

func (*Session) Writer

func (s *Session) Writer(protocolId uint16, buffer *bytes.Buffer) *bytes.Buffer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL