config

package
v0.49.3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 7

Documentation

Index

Constants

View Source
const APP_CONFIG = "APP_CONFIG"
View Source
const APP_CONFIG_SECRETS = "APP_CONFIG_SECRETS" //nolint:gosec

Variables

This section is empty.

Functions

func LoadEnvironmentFile added in v0.15.3

func LoadEnvironmentFile(logger log.Logger, envVar string, v *viper.Viper) error

Types

type Service

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

func NewService

func NewService(logger log.Logger) Service

func (*Service) Load

func (s *Service) Load(config interface{}) error

func (*Service) LoadEmbeddedFile added in v0.44.0

func (s *Service) LoadEmbeddedFile(file string, config interface{}, fs fs.FS) error

func (*Service) LoadFile

func (s *Service) LoadFile(file string, config interface{}) error

func (*Service) LoadFromFS added in v0.44.0

func (s *Service) LoadFromFS(config interface{}, fs fs.FS) error

func (*Service) MergeEnvironments added in v0.44.0

func (s *Service) MergeEnvironments(config interface{}) error

Jump to

Keyboard shortcuts

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