etcdv3

package
v0.0.0-...-be1e383 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore() configstores.Store

Types

type EtcdV3ConfigStore

type EtcdV3ConfigStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*EtcdV3ConfigStore) Delete

Delete deletes configuration from configuration store.

func (*EtcdV3ConfigStore) Get

Get gets configuration from configuration store.

func (*EtcdV3ConfigStore) GetDefaultGroup

func (c *EtcdV3ConfigStore) GetDefaultGroup() string

func (*EtcdV3ConfigStore) GetDefaultLabel

func (c *EtcdV3ConfigStore) GetDefaultLabel() string

func (*EtcdV3ConfigStore) GetItemsFromAllKeys

func (c *EtcdV3ConfigStore) GetItemsFromAllKeys(kvs []*mvccpb.KeyValue, targetString []string) []*configstores.ConfigurationItem

func (*EtcdV3ConfigStore) GetPrimaryKeyWithoutTag

func (c *EtcdV3ConfigStore) GetPrimaryKeyWithoutTag(s string) string

func (*EtcdV3ConfigStore) Init

Init init the configuration store.

func (*EtcdV3ConfigStore) OnLogLevelChanged

func (c *EtcdV3ConfigStore) OnLogLevelChanged(outputLevel log.LogLevel)

func (*EtcdV3ConfigStore) ParseKey

func (c *EtcdV3ConfigStore) ParseKey(appId string, req *configstores.ConfigurationItem) []string

func (*EtcdV3ConfigStore) Set

Set saves configuration into configuration store.

func (*EtcdV3ConfigStore) StopSubscribe

func (c *EtcdV3ConfigStore) StopSubscribe()

func (*EtcdV3ConfigStore) Subscribe

Subscribe gets configuration from configuration store and subscribe the updates.

Jump to

Keyboard shortcuts

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