conf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigChangeEvent = "config_change"
)

Variables

This section is empty.

Functions

func ValidateConfigKeys

func ValidateConfigKeys(providerName, fileName, embeddedContent, confDir string)

ValidateConfigKeys compares keys in the embedded default YAML with the on-disk config file. For any key present in embedded but missing on disk, a yellow warning is printed. Missing keys are reported at the shallowest level only (e.g. report "server.tls" not all its children).

Types

type ConfServiceProvider

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

func (*ConfServiceProvider) Boot

func (i *ConfServiceProvider) Boot()

func (*ConfServiceProvider) Conf

func (i *ConfServiceProvider) Conf() map[string]string

func (*ConfServiceProvider) Description

func (i *ConfServiceProvider) Description() string

func (*ConfServiceProvider) Register

func (i *ConfServiceProvider) Register()

type Configure

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

func NewConfigure

func NewConfigure(app foundation.Application, bus EventBus.Bus) *Configure

func (*Configure) GetConfig

func (i *Configure) GetConfig(key string, v any) error

func (*Configure) SaveConfig

func (i *Configure) SaveConfig(fileName string, key string, value any)

Source Files

  • conf_service_provider.go
  • event.go
  • load.go
  • validate.go

Jump to

Keyboard shortcuts

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