Documentation ¶
Index ¶
- func SetService(svc Service)
- type DefaultConfigService
- func (*DefaultConfigService) Delete(configType commons.ConfigType) error
- func (*DefaultConfigService) Exists(configType commons.ConfigType) bool
- func (*DefaultConfigService) Load(configType commons.ConfigType) (interface{}, error)
- func (*DefaultConfigService) Save(payload interface{}, configType commons.ConfigType) error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetService ¶
func SetService(svc Service)
Types ¶
type DefaultConfigService ¶
type DefaultConfigService struct{}
func (*DefaultConfigService) Delete ¶
func (*DefaultConfigService) Delete(configType commons.ConfigType) error
func (*DefaultConfigService) Exists ¶
func (*DefaultConfigService) Exists(configType commons.ConfigType) bool
func (*DefaultConfigService) Load ¶
func (*DefaultConfigService) Load(configType commons.ConfigType) (interface{}, error)
func (*DefaultConfigService) Save ¶
func (*DefaultConfigService) Save(payload interface{}, configType commons.ConfigType) error
type Service ¶
type Service interface { Save(interface{}, commons.ConfigType) error Load(commons.ConfigType) (interface{}, error) Exists(commons.ConfigType) bool Delete(commons.ConfigType) error }
func GetService ¶
func GetService() Service
Click to show internal directories.
Click to hide internal directories.