config

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(config Config, prefix string) func() *pool.Config

Types

type Config

type Config interface {
	Int(string, int, string, ...func(int) error) *int
	Duration(string, time.Duration, string, ...func(time.Duration) error) *time.Duration
}

Config describes an object that is capable to create configuration variables which could be changed from outside somehow.

type Stat

type Stat interface {
	Config
	Float64Slice(string, []float64, string, ...func([]float64) error) *[]float64
}

Stat describes an object that is the same as Config but with stat additional methods.

Jump to

Keyboard shortcuts

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