relay

package
v0.2.479 Latest Latest
Warning

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

Go to latest
Published: May 21, 2025 License: GPL-2.0, GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRelayDataLimit     = 32 << 20 // 32 MiB
	DefaultRelayDurationLimit = 5 * time.Minute
)

Variables

View Source
var DefaultResources = relayv2.Resources{
	Limit: &relayv2.RelayLimit{
		Duration: DefaultRelayDurationLimit,
		Data:     DefaultRelayDataLimit,
	},

	ReservationTTL: time.Hour,

	MaxReservations: 128,
	MaxCircuits:     16,
	BufferSize:      4096,

	MaxReservationsPerIP:  8,
	MaxReservationsPerASN: 32,
}

Functions

func NewRelay

func NewRelay(node warpnet.P2PNode) (*relayv2.Relay, error)

func WithDefaultResources

func WithDefaultResources() relayv2.Option

Types

This section is empty.

Jump to

Keyboard shortcuts

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