Documentation ¶
Index ¶
- Constants
- func GetRawFileHandler() file.FileHandler
- type FileHandler
- func (fileHandler *FileHandler) GetConfigFile(configDir string, appID string, namespace string) string
- func (fileHandler *FileHandler) LoadConfigFile(configDir string, appID string, namespace string) (*config.ApolloConfig, error)
- func (fileHandler *FileHandler) WriteConfigFile(config *config.ApolloConfig, configPath string) error
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
Click to show internal directories.
Click to hide internal directories.