clientbuilder

package module
v0.0.0-...-ef678a3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: BSD-3-Clause Imports: 5 Imported by: 1

README

go-etcd-clientbuilder

Various ways of creating etcd clients

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillConfigFromDNS

func FillConfigFromDNS(conf *etcd.Config, srvtype, domain string) error

FillConfigFromDNS queries DNS records for endpoints and adds them to the specified etcd client configuration.

func NewFromDNS

func NewFromDNS(domain, user, pass string) (*etcd.Client, error)

NewFromDNS creates a new etcd client configured from a DNS domain name, with an optional user name and password.

func NewTLSFromDNS

func NewTLSFromDNS(tc *tls.Config,
	domain, user, pass string) (*etcd.Client, error)

NewTLSFromDNS creates a new etcd client configured from a DNS domain name, with a TLS configuration and an optional user name and password.

Types

This section is empty.

Directories

Path Synopsis
Package autoconf provides functions for determining an automatic configuration for etcd from program flags.
Package autoconf provides functions for determining an automatic configuration for etcd from program flags.

Jump to

Keyboard shortcuts

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