Documentation
¶
Index ¶
- type Config
- type GnetServer
- func (s *GnetServer) OnBoot(engine gnet.Engine) gnet.Action
- func (s *GnetServer) OnClose(c gnet.Conn, err error) gnet.Action
- func (s *GnetServer) OnOpen(c gnet.Conn) ([]byte, gnet.Action)
- func (s *GnetServer) OnTraffic(c gnet.Conn) gnet.Action
- func (s *GnetServer) Start() error
- func (s *GnetServer) Stop() error
- type Handler
- type StandardServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GnetServer ¶
type GnetServer struct {
*gnet.BuiltinEventEngine
// contains filtered or unexported fields
}
func NewGnetServer ¶
func NewGnetServer(config *Config) *GnetServer
func (*GnetServer) Start ¶
func (s *GnetServer) Start() error
func (*GnetServer) Stop ¶
func (s *GnetServer) Stop() error
type StandardServer ¶
type StandardServer struct {
// contains filtered or unexported fields
}
func NewStandardServer ¶
func NewStandardServer(config *Config) *StandardServer
func (*StandardServer) Start ¶
func (s *StandardServer) Start() error
func (*StandardServer) Stop ¶
func (s *StandardServer) Stop() error
Click to show internal directories.
Click to hide internal directories.