multinet

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FallbackDelayDefault = 300 * time.Millisecond
)

Variables

This section is empty.

Functions

func Balancer

func Balancer(c *config.Config) string

Balancer returns the value of "balancer" config parameter from "multinet" section.

func Enabled

func Enabled(c *config.Config) bool

Enabled returns the value of "enabled" config parameter from "multinet" section.

func FallbackDelay

func FallbackDelay(c *config.Config) time.Duration

FallbackDelay returns the value of "fallback_delay" config parameter from "multinet" section.

func Restrict

func Restrict(c *config.Config) bool

Restrict returns the value of "restrict" config parameter from "multinet" section.

Types

type Subnet

type Subnet struct {
	Mask      string
	SourceIPs []string
}

func Subnets

func Subnets(c *config.Config) []Subnet

Subnets returns the value of "subnets" config parameter from "multinet" section.

Jump to

Keyboard shortcuts

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