joapp

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MulanPSL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCfgMgr

type AppCfgMgr[TCfg IAppCfg] struct {
	// contains filtered or unexported fields
}

func NewAppCfgMgr

func NewAppCfgMgr[TCfg IAppCfg](cfg TCfg) *AppCfgMgr[TCfg]

func (*AppCfgMgr[TCfg]) GetCfg

func (mgr *AppCfgMgr[TCfg]) GetCfg() TCfg

func (*AppCfgMgr[TCfg]) LoadJsonCfgFromFile

func (mgr *AppCfgMgr[TCfg]) LoadJsonCfgFromFile(cfgFIlePath string) error

func (*AppCfgMgr[TCfg]) LoadYamlCfgFromFile

func (mgr *AppCfgMgr[TCfg]) LoadYamlCfgFromFile(cfgFilePath string) error

func (*AppCfgMgr[TCfg]) ReloadConfig

func (mgr *AppCfgMgr[TCfg]) ReloadConfig(cfg TCfg) error

func (*AppCfgMgr[TCfg]) SaveToJsonFile

func (mgr *AppCfgMgr[TCfg]) SaveToJsonFile(filePath string) error

func (*AppCfgMgr[TCfg]) SaveToYamlFile

func (mgr *AppCfgMgr[TCfg]) SaveToYamlFile(filePath string) error

type IAppCfg

type IAppCfg interface {
	Test() error
	FixDefaultValues() error
}

Jump to

Keyboard shortcuts

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