policerconfig

package
v0.42.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// HeadTimeoutDefault is a default object.Head request timeout in policer.
	HeadTimeoutDefault = 5 * time.Second
)

Variables

This section is empty.

Functions

func HeadTimeout

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

HeadTimeout returns the value of "head_timeout" config parameter from "policer" section.

Returns HeadTimeoutDefault if the value is not positive duration.

func UnsafeDisable added in v0.37.0

func UnsafeDisable(c *config.Config) bool

UnsafeDisable returns the value of "unsafe_disable" config parameter from "policer" section.

Types

This section is empty.

Jump to

Keyboard shortcuts

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