net

package
v0.0.0-...-0776095 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	Shutdown()
	Close()
	Write(data []byte) error
	LocalAddr() net.Addr
	RemoteAddr() net.Addr
	UserData() any
	SetUserData(data any)
	IsClosed() bool
	Done() chan struct{}
	String() string
	Id() uint64
	Name() string
}

type Handler

type Handler interface {
	OnOpen(conn Conn) error
	OnClose(conn Conn)
	OnRead(conn Conn, data []byte) error
}

Directories

Path Synopsis
grpc
grpcpool
Package grpcpool provides a pool of grpc clients
Package grpcpool provides a pool of grpc clients

Jump to

Keyboard shortcuts

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