etcdv3

package
v0.0.0-...-b4fed4d Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Copyright 2021 Layotto Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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) 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