feature

package
v0.0.0-...-883aa5b Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIdent

func NewIdent(feature string) ident.Ident

func NewLoaderContext

func NewLoaderContext(
	ctx context.Context,
	unleash, redis, kafka, openSearch bool,
) context.Context

Types

type FeatureKafka

type FeatureKafka struct {
	Enabled bool `json:"enabled"`
}

func (FeatureKafka) ID

func (f FeatureKafka) ID() ident.Ident

func (FeatureKafka) IsNode

func (f FeatureKafka) IsNode()

type FeatureOpenSearch

type FeatureOpenSearch struct {
	Enabled bool `json:"enabled"`
}

func (FeatureOpenSearch) ID

func (f FeatureOpenSearch) ID() ident.Ident

func (FeatureOpenSearch) IsNode

func (f FeatureOpenSearch) IsNode()

type FeatureRedis

type FeatureRedis struct {
	Enabled bool `json:"enabled"`
}

func (FeatureRedis) ID

func (f FeatureRedis) ID() ident.Ident

func (FeatureRedis) IsNode

func (f FeatureRedis) IsNode()

type FeatureUnleash

type FeatureUnleash struct {
	Enabled bool `json:"enabled"`
}

func (FeatureUnleash) ID

func (f FeatureUnleash) ID() ident.Ident

func (FeatureUnleash) IsNode

func (f FeatureUnleash) IsNode()

type Features

type Features struct {
	Unleash    FeatureUnleash    `json:"unleash"`
	Redis      FeatureRedis      `json:"redis"`
	Kafka      FeatureKafka      `json:"kafka"`
	OpenSearch FeatureOpenSearch `json:"openSearch"`
}

func Get

func Get(ctx context.Context) (*Features, error)

func (Features) ID

func (f Features) ID() ident.Ident

func (Features) IsNode

func (f Features) IsNode()

Jump to

Keyboard shortcuts

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