nacos

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct{}

type Option

type Option struct {
	DataID      string
	Group       string
	Suffix      string
	EnableWatch bool
	Logger      baselogger.Logger
}

func NewOption

func NewOption() *Option

func SetDataID

func SetDataID(s string) *Option

func SetEnableWatch

func SetEnableWatch(b bool) *Option

func SetGroup

func SetGroup(s string) *Option

func SetLogger

func SetLogger(l baselogger.Logger) *Option

func SetSuffix

func SetSuffix(s string) *Option

func (*Option) MergeOption

func (c *Option) MergeOption(opts ...*Option) *Option

func (*Option) SetDataID

func (c *Option) SetDataID(s string) *Option

func (*Option) SetEnableWatch

func (c *Option) SetEnableWatch(b bool) *Option

func (*Option) SetGroup

func (c *Option) SetGroup(s string) *Option

func (*Option) SetLogger

func (c *Option) SetLogger(l baselogger.Logger) *Option

func (*Option) SetSuffix

func (c *Option) SetSuffix(s string) *Option

type Source

type Source struct {
	Client config_client.IConfigClient

	DataID      string
	Group       string
	Suffix      string
	EnableWatch bool
	Logger      baselogger.Logger
	// contains filtered or unexported fields
}

Source etcd provider.

func NewSource

func NewSource(client config_client.IConfigClient, opts ...*Option) (*Source, error)

NewSource returns new Source.

func (*Source) ConfigChanged

func (cs *Source) ConfigChanged() <-chan map[string]interface{}

IsConfigChanged ...

func (*Source) ReadConfig

func (cs *Source) ReadConfig() (content map[string]interface{}, err error)

ReadConfig ...

Jump to

Keyboard shortcuts

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