json

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

View Source
const Suffix = ".json"

Suffix 默认文件保存类型

Variables

This section is empty.

Functions

func GetRawFileHandler

func GetRawFileHandler() file.FileHandler

GetRawFileHandler 获取 rawFileHandler 实例

Types

type FileHandler

type FileHandler struct {
}

FileHandler 默认备份文件读写

func (*FileHandler) GetConfigFile

func (fileHandler *FileHandler) GetConfigFile(configDir string, appID string, namespace string) string

GetConfigFile get real config file

func (*FileHandler) LoadConfigFile

func (fileHandler *FileHandler) LoadConfigFile(configDir string, appID string, namespace string) (*config.ApolloConfig, error)

LoadConfigFile load config from file

func (*FileHandler) WriteConfigFile

func (fileHandler *FileHandler) WriteConfigFile(config *config.ApolloConfig, configPath string) error

WriteConfigFile write config to file

Jump to

Keyboard shortcuts

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