etcdlayer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package etcdlayer is a layer to manage a configuration on a key inside the etcd, it watches the change on the key

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEtcdLayer

func NewEtcdLayer(key string, format string, endPoints []string, c onion.Cipher) (onion.Layer, error)

NewEtcdLayer creates a new etcd layer

func NewEtcdLayerContext

func NewEtcdLayerContext(ctx context.Context, key string, format string, endPoints []string, c onion.Cipher) (onion.Layer, error)

NewEtcdLayerContext reads config from a etcd key, it should encode with one of the know formats and optionally can be encrypted using cipher.

Types

This section is empty.

Jump to

Keyboard shortcuts

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