globalConfig

package
v7.6.44 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

This package breaks out some global config handling to where it can be used externally without dependence on all flashlight config.

Index

Constants

View Source
const FeatureReplica = "replica"

Variables

View Source
var ErrFeatureOptionAbsent = errors.New("feature option is absent")

Functions

func UnmarshalFeatureOptions

func UnmarshalFeatureOptions(cfg Raw, feature string, opts FeatureOptions) error

Types

type FeatureOptions

type FeatureOptions interface {
	FromMap(map[string]interface{}) error
}

FeatureOptions is an interface implemented by all feature options

type Raw

type Raw any

This is equivalent config.Config without any of the extra functionality.

Jump to

Keyboard shortcuts

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