Documentation ¶
Index ¶
- func Adapter(cfg *model.Bootstrap) (err error)
- func CheckYamlFormat(path string) bool
- func GetAPIConf() fc.APIConfig
- func GetBootstrap() *model.Bootstrap
- func GetDiscoveryType(cfg *model.Bootstrap) (err error)
- func GetFilterChain(cfg *model.Bootstrap) (err error)
- func GetHttpConfig(cfg *model.Bootstrap) (err error)
- func GetLoadBalance(cfg *model.Bootstrap) (err error)
- func GetProtocol(cfg *model.Bootstrap) (err error)
- func Load(path string) *model.Bootstrap
- func LoadAPIConfig(metaConfig *model.APIMetaConfig) (*fc.APIConfig, error)
- func LoadAPIConfigFromFile(path string) (*fc.APIConfig, error)
- func LoadYAMLConfig(path string) *model.Bootstrap
- func RegisterConfigListener(li APIConfigListener)
- func RegisterConfigLoadFunc(f LoadFunc)
- type APIConfigListener
- type LoadFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckYamlFormat ¶
func GetBootstrap ¶
GetBootstrap get config global, need a better name
func GetDiscoveryType ¶
func GetFilterChain ¶
func GetHttpConfig ¶
func GetLoadBalance ¶
func GetProtocol ¶
func LoadAPIConfig ¶
func LoadAPIConfig(metaConfig *model.APIMetaConfig) (*fc.APIConfig, error)
LoadAPIConfig load the api config from config center
func LoadAPIConfigFromFile ¶
LoadAPIConfigFromFile load the api config from file
func LoadYAMLConfig ¶
LoadYAMLConfig YAMLConfigLoad config load yaml
func RegisterConfigListener ¶
func RegisterConfigListener(li APIConfigListener)
RegisterConfigListener register APIConfigListener
func RegisterConfigLoadFunc ¶
func RegisterConfigLoadFunc(f LoadFunc)
RegisterConfigLoadFunc can replace a new config load function instead of default
Types ¶
type APIConfigListener ¶
type APIConfigListener interface {
APIConfigChange(apiConfig fc.APIConfig) bool // bool is return for interface implement is interesting
}
APIConfigListener defines api config listener interface
Click to show internal directories.
Click to hide internal directories.