etcd

package
v0.0.0-...-dccc141 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func V2Adapter

func V2Adapter(r *http.Request) string

func V3Adapter

func V3Adapter(r *http.Request) string

Types

type HTTPClient

type HTTPClient struct {
	KeyAdapter KeyAdapter
	// contains filtered or unexported fields
}

func NewHTTPClient

func NewHTTPClient(endpoints []string, options ...Option) *HTTPClient

func (*HTTPClient) Do

type KeyAdapter

type KeyAdapter func(r *http.Request) string

type Option

type Option func(cli *HTTPClient) error

func WithClientTlsConfig

func WithClientTlsConfig(certFile, keyFile, caCertFile string) Option

func WithEtcdV3Api

func WithEtcdV3Api() Option

Jump to

Keyboard shortcuts

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