config

package
Version: v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 0 Imported by: 4

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL