config

package
v0.0.0-...-2d08fe4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// if enabled, the agent will periodically check for idle NAT sessions and delete inactive ones
	CleanupIdleNATSessions bool `json:"cleanupIdleNATSessions"`

	// NAT session timeout (in minutes) for TCP connections, used in case that CleanupIdleNATSessions is turned on
	TCPNATSessionTimeout uint32 `json:"tcpNATSessionTimeout"`

	// NAT session timeout (in minutes) for non-TCP connections, used in case that CleanupIdleNATSessions is turned on
	OtherNATSessionTimeout uint32 `json:"otherNATSessionTimeout"`

	// how much locally deployed endpoints are more likely to receive a connection
	ServiceLocalEndpointWeight uint8 `json:"serviceLocalEndpointWeight"`

	// if true, NAT plugin will drop fragmented packets
	DisableNATVirtualReassembly bool `json:"disableNATVirtualReassembly"`
}

Config holds the Service configuration.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns configuration for service plugin with default values.

Jump to

Keyboard shortcuts

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