etcdbk

package
v0.1.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: Apache-2.0 Imports: 12 Imported by: 31

Documentation

Overview

Package etcdbk implements Etcd powered backend

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON(paramsJSON string) (backend.Backend, error)

FromJSON returns backend initialized from JSON-encoded string

func FromObject

func FromObject(in interface{}) (backend.Backend, error)

FromObject initialized the backend from backend-specific string

func New

func New(cfg Config) (backend.Backend, error)

New returns new instance of Etcd-powered backend

Types

type Config added in v1.0.0

type Config struct {
	Nodes       []string `json:"nodes"`
	Key         string   `json:"key"`
	TLSKeyFile  string   `json:"tls_key_file"`
	TLSCertFile string   `json:"tls_cert_file"`
	TLSCAFile   string   `json:"tls_ca_file"`
}

Config represents JSON config for etcd backend

func (*Config) Check added in v1.0.0

func (cfg *Config) Check() error

Check checks if all the parameters are valid

Jump to

Keyboard shortcuts

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