factory

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ResourceNotFound = errors.New("resource not found")
)

Functions

func New

func New() common.Factory

func NewFileProvider

func NewFileProvider(configPath string, extension string, logger zerolog.Logger) common.ConfigProvider

func NewFileProviderForFS

func NewFileProviderForFS(fs fs.FS, extension string, logger zerolog.Logger) common.ConfigProvider

func NewFromConfig

func NewFromConfig(config Config) (common.Factory, error)

Types

type Config

type Config struct {
	ConfigurationsDir string
	FileExtension     string
}

Jump to

Keyboard shortcuts

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