netpacket

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle struct {
	PacketIndex int
	Fn          func() (ok bool) `json:"-"`
	ReqUrl      string
	Info        string
}

type Interface

type Interface interface {
	RegisterPacketHandles(handles []Handle)

	Handles() []Handle
	HandlePacket() (ok bool)
	SetEvent(event any)
	SetEventsCap(cap int)
	Events() <-chan any
	HandleEvent()
	HttpClient() *httpClient.Client
}

func New

func New() Interface

Jump to

Keyboard shortcuts

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