conf

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	BucketSize int
}

type Config

type Config struct {
	Worker Worker
	Bucket Bucket

	WebSocket WebSocket
	TCP       TCP
	KCP       KCP
}

func Default

func Default() Config

func MOBAConfig added in v0.0.26

func MOBAConfig() Config

type KCP added in v0.0.26

type KCP struct {
	WriteBufSize int
	ReadBufSize  int
	DataShards   int
	ParityShards int

	NoDelay    [4]int // nodelay, interval, resend, nc
	WindowSize [2]int // sndwnd, rcvwnd
	MTU        int    // MAX MTU for UDP networks
	ACKNoDelay bool   // ACK immediately
	WriteDelay bool   // immediate sending
	DSCP       int    // EF (Expedited Forwarding) for low latency

	Smux              bool
	SmuxStreamSize    int
	KeepAliveInterval time.Duration
	KeepAliveTimeout  time.Duration
	MaxFrameSize      int
	MaxReceiveBuffer  int
}

type TCP added in v0.0.26

type TCP struct {
	KeepAlive    bool
	WriteBufSize int
	ReadBufSize  int
}

type WebSocket added in v0.0.25

type WebSocket struct {
	ReadBufSize  int
	WriteBufSize int
	AllowOrigins []string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type Worker

type Worker struct {
	WorkerSize         int
	ReplyChanSize      int
	HandshakeTimeout   time.Duration
	RequestIdleTimeout time.Duration
	StopTimeout        time.Duration
	TunnelGroupSize    int
	TickInterval       time.Duration
}

Jump to

Keyboard shortcuts

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