server

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v0.5.7

type Server struct {
	*gnet.EventServer
	// contains filtered or unexported fields
}

func New

func New(version string, build string) *Server

func (*Server) OnClosed added in v1.0.0

func (s *Server) OnClosed(conn gnet.Conn, err error) (action gnet.Action)

func (*Server) OnInitComplete added in v1.0.0

func (s *Server) OnInitComplete(srv gnet.Server) (action gnet.Action)

func (*Server) OnOpened added in v1.0.0

func (s *Server) OnOpened(conn gnet.Conn) (out []byte, action gnet.Action)

func (*Server) OnShutdown added in v1.0.0

func (s *Server) OnShutdown(svr gnet.Server)

func (*Server) React added in v1.0.0

func (s *Server) React(frame []byte, conn gnet.Conn) (out []byte, action gnet.Action)

func (*Server) Start added in v0.5.7

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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