Documentation ¶
Index ¶
- func NewSource(opts ...Option) config.Source
- type Option
- func WithAppID(appID string) Option
- func WithBackupPath(backupPath string) Option
- func WithCluster(cluster string) Option
- func WithDisableBackup() Option
- func WithEnableBackup() Option
- func WithEndpoint(endpoint string) Option
- func WithNamespace(name string) Option
- func WithOriginalConfig() Option
- func WithSecret(secret string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*options)
Option is apollo option
func WithBackupPath ¶
WithBackupPath with apollo config backupPath
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 ¶
WithEndpoint with apollo config conf server ip
func WithNamespace ¶
WithNamespace with apollo config namespace name
func WithOriginalConfig ¶
func WithOriginalConfig() Option
WithOriginalConfig use the original configuration file without parse processing
Click to show internal directories.
Click to hide internal directories.