etcd

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(endpoints []string, dialTimeout time.Duration) (*clientv3.Client, error)

NewClient returns an etcd Client connecting to the passed in servers' endpoints, with the specified dialing timeout.

The return type belongs to etcd package in Trillian vendor/ directory, which allows external clients/codebases to build an object that matches the Trillian internal implementation (a clientv3.Client built from a different codebase/location, even if it's the same code, wouldn't have the required matching type).

TODO(pavelkalinnikov): Remove this when there is a way to compatibly import the same version of etcd in external codebases. Could Go modules help?

func NewClientFromString added in v1.3.0

func NewClientFromString(servers string) (*clientv3.Client, error)

NewClientFromString returns an etcd client, or nil if servers is empty. The servers parameter must be a comma-separated list of etcd server URIs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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