Documentation
¶
Overview ¶
Package consul implements the functions, types, and interfaces for the module.
Package consul contains generated code by adptool.
Package consul implements the functions, types, and interfaces for the module.
Package consul implements the functions, types, and interfaces for the module.
Index ¶
- Constants
- func FileConfigPath(serviceName, filename string) string
- func New(client *api.Client, opts ...consul.Option) (config.Source, error)
- func NewSource(srcConfig *sourcev1.SourceConfig, opts ...options.Option) (kratosconfig.Source, error)
- func SyncConfig(ccfg *sourcev1.SourceConfig, v any, opts ...options.Option) error
- func WithConsulOption(opts ...consul.Option) options.Option
- func WithContext(ctx context.Context) consul.Option
- func WithPath(p string) consul.Option
- type Option
- type Options
Constants ¶
View Source
const ( DefaultPathName = "bootstrap.json" Type = "consul" )
Variables ¶
This section is empty.
Functions ¶
func FileConfigPath ¶
func NewSource ¶
func NewSource(srcConfig *sourcev1.SourceConfig, opts ...options.Option) (kratosconfig.Source, error)
NewSource create a new consul config.
func SyncConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.