yamlConfig

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MySQL   = "mysql"
	MSSQL   = "mssql"
	MongoDB = "mongodb"
	Posgres = "postgres"
	REST    = "rest"
	FTP     = "ftp"
)

Variables

This section is empty.

Functions

func ExtensionAs

func ExtensionAs[T any](c *BaseConfig) (T, error)

func Load

func Load(override string) error

func Reload added in v0.0.7

func Reload(override string) error

Types

type BaseConfig

type BaseConfig struct {
	Svc  service   `yaml:"service"`
	Srcs []source  `yaml:"sources"`
	Log  logConfig `yaml:"logging,omitempty"`
	Ext  any       `yaml:"extension,omitempty"`
}

BaseConfig implements boiler.Config

func Get added in v0.0.7

func Get() *BaseConfig

func (*BaseConfig) Extension

func (bc *BaseConfig) Extension() any

func (*BaseConfig) LogConfig

func (bc *BaseConfig) LogConfig() logConfig

func (*BaseConfig) Service

func (bc *BaseConfig) Service() service

Getter methods for BaseConfig

func (*BaseConfig) Sources

func (bc *BaseConfig) Sources() []boiler.IOWithAuth

Implement boiler.Config interface

func (*BaseConfig) Validate added in v0.0.7

func (bc *BaseConfig) Validate() error

type ConfigManager added in v0.0.7

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

Jump to

Keyboard shortcuts

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