service

package
v0.0.0-...-e5fb36a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func NewServer

func NewServer(addr string, multicore bool, async bool, codec gnet.ICodec, workerPool *goroutine.Pool) *Server

func (*Server) OnInitComplete

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

func (*Server) React

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

Jump to

Keyboard shortcuts

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