websocket_net

package
v0.0.0-...-a235dd1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WsNet

type WsNet struct {
	gnet.Engine
	// contains filtered or unexported fields
}

func New

func New(addr string, handler base.EventHandler, opt *base.Options) *WsNet

func (*WsNet) OnBoot

func (w *WsNet) OnBoot(eng gnet.Engine) (action gnet.Action)

func (*WsNet) OnClose

func (w *WsNet) OnClose(c gnet.Conn, err error) (action gnet.Action)

func (*WsNet) OnOpen

func (w *WsNet) OnOpen(c gnet.Conn) (out []byte, action gnet.Action)

func (*WsNet) OnShutdown

func (w *WsNet) OnShutdown(_ gnet.Engine)

func (*WsNet) OnTick

func (w *WsNet) OnTick() (delay time.Duration, action gnet.Action)

func (*WsNet) OnTraffic

func (w *WsNet) OnTraffic(c gnet.Conn) (action gnet.Action)

func (*WsNet) Run

func (w *WsNet) Run()

func (*WsNet) Stop

func (w *WsNet) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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