v2

package
v0.0.0-...-3369516 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 8 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(p *goroutine.Pool) *Server

func (*Server) OnShutdown

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

func (*Server) React

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

func (*Server) Start

func (s *Server) Start(addr string) error

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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