_interface

package
v0.0.0-...-e2dec13 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfig

type IConfig interface {
	GetProtocol() string
	GetIp() string
	GetPort() int32
}

type IConnection

type IConnection interface {
	RemoteAddr() string
	Send(bs []byte) (n int, err error)
	Close() (err error)
}

type IEasyNet

type IEasyNet interface {
	OnStart(conn IConnection) error

	OnConnect(conn IConnection) error

	OnReceive(conn IConnection, ip IInputStream) ([]byte, error)

	OnShutdown(conn IConnection) error

	OnClose(conn IConnection, err error) error
}

type IInputStream

type IInputStream interface {
	Begin(packet []byte) (data []byte)
	End(data []byte)
}

type IPlugin

type IPlugin interface {
	Run() error
}

Jump to

Keyboard shortcuts

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