Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApolloConfig ¶
func ApolloConfig() *apollo.ApolloConfig
func ParseApolloConfig ¶
func RegisterApolloListener ¶
func RegisterApolloListener(f func(*storage.ChangeEvent))
Types ¶
type Config ¶
type Config interface { ServerName() string ServerPort() int ServiceRpcHeaderName() string GetServiceConfig(serviceName string) *ServiceConfig GetSignKey(serviceConfig *ServiceConfig) string GetSignKeyByName(name string) string GetEncryptKey(serviceConfig *ServiceConfig) string GetEncryptKeyByName(name string) string GetTimeoutConfigByName(name string, uri string) int HttpClientMaxIdleConns() int HttpClientMaxIdleConnsPerHost() int FastHttpEnable() bool }
func LoadApolloConfig ¶
func LoadYamlConfig ¶
type EncryptKeyConfig ¶
type ServiceConfig ¶
type ServiceTimeoutConfig ¶
type ServiceTimeoutConfig struct {
Timeout int `json:"timeout"`
}
type SignKeyConfig ¶
Click to show internal directories.
Click to hide internal directories.