config

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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