fileprovider

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider struct {
	appconfig.ProviderMeta
	// contains filtered or unexported fields
}

func NewEmbeddedFSProvider

func NewEmbeddedFSProvider(precedence int, path string, fs embed.FS) (provider *ConfigProvider, exists bool)

func NewFileProvidersFromBaseName

func NewFileProvidersFromBaseName(precedence int, baseName string, ext string, conf bootstrap.ApplicationConfig) (provider *ConfigProvider, exists bool)

func NewProvider

func NewProvider(precedence int, filePath string, reader io.Reader) *ConfigProvider

func (*ConfigProvider) Load

func (configProvider *ConfigProvider) Load(_ context.Context) (loadError error)

func (*ConfigProvider) Name

func (configProvider *ConfigProvider) Name() string

Jump to

Keyboard shortcuts

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