Documentation ¶
Index ¶
- func New(ctx context.Context, appID string, namespaces []string, opts ...Option) (err error)
- type ApolloClient
- type Option
- func WithAuth(auth auth.HTTPAuth) Option
- func WithBackupConfigPath(backupPath string) Option
- func WithCache(cache agcache.CacheFactory) Option
- func WithCustomListeners(listeners []listener.CustomListener) Option
- func WithFileHandler(fileHandler file.FileHandler) Option
- func WithIsBackupConfig(isBackup bool) Option
- func WithLoadBalance(loadBalance cluster.LoadBalance) Option
- func WithLogger(logger log.LoggerInterface) Option
- func WithSyncServerTimeout(syncServerTimeout int) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApolloClient ¶
type ApolloClient struct {
// contains filtered or unexported fields
}
type Option ¶
type Option func(*ApolloClient)
func WithBackupConfigPath ¶
func WithCache ¶
func WithCache(cache agcache.CacheFactory) Option
func WithCustomListeners ¶
func WithCustomListeners(listeners []listener.CustomListener) Option
func WithFileHandler ¶
func WithFileHandler(fileHandler file.FileHandler) Option
func WithIsBackupConfig ¶
func WithLoadBalance ¶
func WithLoadBalance(loadBalance cluster.LoadBalance) Option
func WithLogger ¶
func WithLogger(logger log.LoggerInterface) Option
func WithSyncServerTimeout ¶
Click to show internal directories.
Click to hide internal directories.