featurecontrol

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 7

Documentation

Index

Constants

View Source
const (
	FeatureReceiverNameInMetrics = "receiver-name-in-metrics"
	FeatureClassicMode           = "classic-mode"
	FeatureUTF8StrictMode        = "utf8-strict-mode"
)

Variables

Functions

This section is empty.

Types

type Flagger

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

func NewFlags

func NewFlags(logger log.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) 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) 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