loader

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteConfigurationLoader

type RemoteConfigurationLoader struct {
	// contains filtered or unexported fields
}

RemoteConfigurationLoader to load remote configuration from etcd

func NewRemoteConfigurationLoader

func NewRemoteConfigurationLoader(props *mas.PropertiesConfiguration,
	etcdConfiguration *etcd.EtcdConfiguration) *RemoteConfigurationLoader

@param props is yaml properties configuration entity @param etcdConfiguration is yaml etcd configuration entity

func (*RemoteConfigurationLoader) AddRouterListener

func (l *RemoteConfigurationLoader) AddRouterListener(listener config.RouterConfigurationListener)

AddRouterListener add a router configuration listener

func (*RemoteConfigurationLoader) Close

func (l *RemoteConfigurationLoader) Close() error

Close loader's etcdClient and set loader's listeners nil

func (*RemoteConfigurationLoader) GetConfiguration

GetConfiguration form etcd

func (*RemoteConfigurationLoader) Init

func (l *RemoteConfigurationLoader) Init()

Init etcd start watch activeKey

Jump to

Keyboard shortcuts

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