Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithApolloHost ¶
Types ¶
type AuthSignature ¶
type AuthSignature struct { }
AuthSignature apollo 授权
func (*AuthSignature) HTTPHeaders ¶
HTTPHeaders HTTPHeaders
type CallBack ¶
type CallBack struct { SuccessCallBack func([]byte, CallBack) (configData, error) NotModifyCallBack func() error Namespace string }
CallBack 请求回调函数
type Config ¶
type Config struct { // Host apollo 地址 Host string // AppId apollo appid AppId string // NameSpace apollo 命名空间 NameSpace string // Cluster 集群名称 Cluster string // Secret 密钥 Secret string // Timeout 超时时间 Timeout time.Duration // IsRetry 是否重试 IsRetry bool // Auth 包头签名 Auth HTTPAuth // ConfigExt 支持的配置扩展名 ConfigExt configFormat }
Click to show internal directories.
Click to hide internal directories.