meta

package
v1.999.225-0...-ba4161e Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTCP

func CreateTCP(options TCPOptions) (gen.MetaBehavior, error)

func CreateTCPClient

func CreateTCPClient(options TCPClientOptions) (gen.MetaBehavior, error)

func CreateUDP

func CreateUDP(options UDPOptions) (gen.MetaBehavior, error)

func CreateWeb

func CreateWeb(options WebOptions) (gen.MetaBehavior, error)

Types

type MessageTCP

type MessageTCP struct {
	ID   gen.Alias
	Data []byte
}

type MessageTCPConnect

type MessageTCPConnect struct {
	ID         gen.Alias
	RemoteAddr net.Addr
	LocalAddr  net.Addr
}

type MessageTCPDisconnect

type MessageTCPDisconnect struct {
	ID gen.Alias
}

type MessageUDP

type MessageUDP struct {
	ID   gen.Alias
	Addr net.Addr
	Data []byte
}

type MessageWebRequest

type MessageWebRequest struct {
	Response http.ResponseWriter
	Request  *http.Request
	Done     func()
}

type TCPClientOptions

type TCPClientOptions struct {
	Host               string
	Port               uint16
	Process            gen.Atom
	CertManager        gen.CertManager
	BufferSize         int
	BufferPool         *sync.Pool
	KeepAlivePeriod    time.Duration
	InsecureSkipVerify bool
}

type TCPOptions

type TCPOptions struct {
	Host               string
	Port               uint16
	ProcessPool        []gen.Atom
	CertManager        gen.CertManager
	BufferSize         int
	BufferPool         *sync.Pool
	KeepAlivePeriod    time.Duration
	InsecureSkipVerify bool
}

type UDPOptions

type UDPOptions struct {
	Host       string
	Port       uint16
	Process    gen.Atom
	BufferSize int
	BufferPool *sync.Pool
}

type WebHandler

type WebHandler interface {
	http.Handler
	gen.MetaBehavior
}

func CreateWebHandler

func CreateWebHandler(options WebHandlerOptions) WebHandler

type WebHandlerOptions

type WebHandlerOptions struct {
	Process        gen.Atom
	RequestTimeout time.Duration
}

type WebOptions

type WebOptions struct {
	Host        string
	Port        uint16
	CertManager gen.CertManager
	Handler     http.Handler
}

Jump to

Keyboard shortcuts

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