apollo

package module
v2.0.0-...-d8e06a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSource

func NewSource(opts ...Option) config.Source

Types

type Option

type Option func(*options)

Option is apollo option

func WithAppID

func WithAppID(appID string) Option

WithAppID with apollo config app id

func WithBackupPath

func WithBackupPath(backupPath string) Option

WithBackupPath with apollo config backupPath

func WithCluster

func WithCluster(cluster string) Option

WithCluster with apollo config cluster

func WithDisableBackup

func WithDisableBackup() Option

WithDisableBackup with apollo config enable backup config

func WithEnableBackup

func WithEnableBackup() Option

WithEnableBackup with apollo config enable backup config

func WithEndpoint

func WithEndpoint(endpoint string) Option

WithEndpoint with apollo config conf server ip

func WithLogger

func WithLogger(logger log.Logger) Option

WithLogger use custom logger to replace default logger.

func WithNamespace

func WithNamespace(name string) Option

WithNamespace with apollo config namespace name

func WithSecret

func WithSecret(secret string) Option

WithSecret with apollo config app secret

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL