config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterConfig

func RegisterConfig[obj any](config *Config) error

Types

type Config

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

func NewConfig

func NewConfig(dig depinjection.DependencyInjection, sourceInterface source.ConfigInterface) *Config

func (*Config) AvailableTypes

func (cfg *Config) AvailableTypes() []string

type MissingConfigValueError

type MissingConfigValueError struct {
	Key string
}

func (MissingConfigValueError) Error

func (e MissingConfigValueError) Error() string

type UnsupportedConfigTypeError

type UnsupportedConfigTypeError struct {
	Type string

	Variable       string
	AvailableTypes []string
}

func (UnsupportedConfigTypeError) Error

type UnsupportedValueForConversionError

type UnsupportedValueForConversionError struct {
	Value string

	FromType string
	ToType   string
}

func (UnsupportedValueForConversionError) Error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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