profilerconfig

package
v0.28.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ShutdownTimeoutDefault is a default value for profiler HTTP service timeout.
	ShutdownTimeoutDefault = 30 * time.Second

	// AddressDefault is a default value for profiler HTTP service endpoint.
	AddressDefault = ""
)

Variables

This section is empty.

Functions

func Address

func Address(c *config.Config) string

Address returns value of "address" config parameter from "profiler" section.

Returns AddressDefault if value is not set.

func ShutdownTimeout

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

ShutdownTimeout returns value of "shutdown_timeout" config parameter from "profiler" section.

Returns ShutdownTimeoutDefault if value is not positive duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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