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 ¶
View Source
var AllowedFlags = []string{
FeatureReceiverNameInMetrics,
FeatureClassicMode,
FeatureUTF8StrictMode,
FeatureAutoGOMEMLIMIT,
FeatureAutoGOMAXPROCS,
}
Functions ¶
This section is empty.
Types ¶
type Flagger ¶
type Flagger interface {
EnableReceiverNamesInMetrics() bool
ClassicMode() bool
UTF8StrictMode() bool
EnableAutoGOMEMLIMIT() bool
EnableAutoGOMAXPROCS() bool
}
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
Click to show internal directories.
Click to hide internal directories.