Documentation
¶
Overview ¶
Package fileconfig provides HCL file config loading and watching.
Index ¶
- func Load(path string) (*config.Config, error)
- func WatchPath(path string, onChange func(), onError func(error)) (io.Closer, error)
- func WatchPathWithLogger(path string, logger *slog.Logger, onChange func(), onError func(error)) (io.Closer, error)
- func WithConfigFileList(paths *collectionlist.List[string]) gateway.Option
- func WithConfigFiles(paths ...string) gateway.Option
- func WithConfigPath(path string) gateway.Option
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WatchPathWithLogger ¶
func WithConfigFileList ¶
func WithConfigFileList(paths *collectionlist.List[string]) gateway.Option
func WithConfigFiles ¶
func WithConfigPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.