Codebase list golang-github-go-kit-kit / 5987a68
remove default values, fix formatting Olivier Bregeras 8 years ago
1 changed file(s) with 1 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
1313
1414 // Client is a wrapper arround the etcd client.
1515 type Client interface {
16
1716 // GetEntries will query the given prefix in etcd and returns a set of entries.
1817 GetEntries(prefix string) ([]string, error)
1918 // WatchPrefix starts watching every change for given prefix in etcd. When an
4746 tlsCert tls.Certificate
4847 )
4948 if options == nil {
50 options = &ClientOptions{
51 Cert: "",
52 Key: "",
53 CaCert: "",
54 DialTimeout: 100 * time.Second,
55 DialKeepAline: 100 * time.Second,
56 HeaderTimeoutPerRequest: 100 * time.Second,
57 }
49 options = &ClientOptions{}
5850 }
5951
6052 if options.Cert != "" && options.Key != "" {
61
6253 tlsCert, err = tls.LoadX509KeyPair(options.Cert, options.Key)
6354 if err != nil {
6455 return nil, err