featurecontrol

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	FeatureReceiverNameInMetrics = "receiver-name-in-metrics"
	FeatureClassicMode           = "classic-mode"
	FeatureUTF8StrictMode        = "utf8-strict-mode"
	FeatureAutoGOMEMLIMIT        = "auto-gomemlimit"
	FeatureAutoGOMAXPROCS        = "auto-gomaxprocs"
)

Variables

Functions

This section is empty.

Types

type Flagger

type Flagger interface {
	EnableReceiverNamesInMetrics() bool
	ClassicMode() bool
	UTF8StrictMode() bool
	EnableAutoGOMEMLIMIT() bool
	EnableAutoGOMAXPROCS() bool
}

func NewFlags

func NewFlags(logger *slog.Logger, features string) (Flagger, error)

type Flags

type Flags struct {
	// contains filtered or unexported fields
}

func (*Flags) ClassicMode

func (f *Flags) ClassicMode() bool

func (*Flags) EnableAutoGOMAXPROCS added in v0.28.0

func (f *Flags) EnableAutoGOMAXPROCS() bool

func (*Flags) EnableAutoGOMEMLIMIT added in v0.28.0

func (f *Flags) EnableAutoGOMEMLIMIT() bool

func (*Flags) EnableReceiverNamesInMetrics

func (f *Flags) EnableReceiverNamesInMetrics() bool

func (*Flags) UTF8StrictMode

func (f *Flags) UTF8StrictMode() bool

type NoopFlags

type NoopFlags struct{}

func (NoopFlags) ClassicMode

func (n NoopFlags) ClassicMode() bool

func (NoopFlags) EnableAutoGOMAXPROCS added in v0.28.0

func (n NoopFlags) EnableAutoGOMAXPROCS() bool

func (NoopFlags) EnableAutoGOMEMLIMIT added in v0.28.0

func (n NoopFlags) EnableAutoGOMEMLIMIT() bool

func (NoopFlags) EnableReceiverNamesInMetrics

func (n NoopFlags) EnableReceiverNamesInMetrics() bool

func (NoopFlags) UTF8StrictMode

func (n NoopFlags) UTF8StrictMode() bool

Jump to

Keyboard shortcuts

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