Documentation ¶
Index ¶
- type CmdClose
- type CmdInterface
- type CmdWrite
- type Handler
- type Options
- type Server
- type Session
- func (s *Session) Close() (err error)
- func (s *Session) CloseWithError(err error) error
- func (s *Session) ExecCommands(commands ...CmdInterface)
- func (s *Session) Id() uint32
- func (s *Session) NewCmdClose(err error) *CmdClose
- func (s *Session) NewCommandWrite(data []byte) *CmdWrite
- func (s *Session) Stopped() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdInterface ¶
type CmdInterface interface {
Exec() error
}
type Handler ¶
type Handler interface { HeaderHandler(headerData []byte, client *Session, thisRecv context.Context) (bodyLen int, thisRecvUpdated context.Context, err error) BodyHandler(bodyData []byte, client *Session, thisRecv context.Context) (err error) OnConnect(client *Session) OnError(err error, client *Session) HeaderLen() int OnClose(client *Session, err error) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetSession ¶
type Session ¶
func (*Session) CloseWithError ¶
func (*Session) ExecCommands ¶
func (s *Session) ExecCommands(commands ...CmdInterface)
func (*Session) NewCmdClose ¶
func (*Session) NewCommandWrite ¶
Click to show internal directories.
Click to hide internal directories.