config

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagsConfigName = "config-kafka-features"
)

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, features *KafkaFeatureFlags) context.Context

Types

type KafkaFeatureFlags

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

func DefaultFeaturesConfig

func DefaultFeaturesConfig() *KafkaFeatureFlags

func FromContext

func FromContext(ctx context.Context) *KafkaFeatureFlags

func (*KafkaFeatureFlags) IsDispatcherOrderedExecutorMetricsEnabled added in v0.33.0

func (f *KafkaFeatureFlags) IsDispatcherOrderedExecutorMetricsEnabled() bool

func (*KafkaFeatureFlags) IsDispatcherRateLimiterEnabled

func (f *KafkaFeatureFlags) IsDispatcherRateLimiterEnabled() bool

func (*KafkaFeatureFlags) Reset

func (f *KafkaFeatureFlags) Reset(ff *KafkaFeatureFlags)

type Store

type Store struct {
	*configmap.UntypedStore
}

Store is a typed wrapper around configmap.Untyped store to handle our configmaps. +k8s:deepcopy-gen=false

func NewStore

func NewStore(ctx context.Context, onAfterStore ...func(name string, value *KafkaFeatureFlags)) *Store

NewStore creates a new store of Configs and optionally calls functions when ConfigMaps are updated.

func (*Store) Load

func (s *Store) Load() *KafkaFeatureFlags

Load creates a Config from the current config state of the Store.

func (*Store) ToContext

func (s *Store) ToContext(ctx context.Context) context.Context

ToContext attaches the current Config state to the provided context.

Jump to

Keyboard shortcuts

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