consul

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *api.Client, opts ...Option) (config.Source, error)

func NewConfigSource

func NewConfigSource(c *conf.RemoteConfig) config.Source

NewConfigSource 创建一个远程配置源 - Consul

Types

type Option

type Option func(o *options)

Option is consul config option.

func WithContext

func WithContext(ctx context.Context) Option

WithContext with registry context.

func WithPath

func WithPath(p string) Option

WithPath is config path

Jump to

Keyboard shortcuts

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