package
0.0.0-20250307055322-04d9774b42d2
Repository: https://github.com/snetsystems/cloudhub.git
Documentation: pkg.go.dev

# Functions

NewClient creates an etcd client implementing the kv.Store interface.
WithDialTimeout allows for setting the etcd dial timeout.
WithEndpoints allows for setting the etcd hosts.
WithLogger allows for setting this cloudhub's logger.
WithLogin allows for setting the username and password to connect to the etcd cluster.
WithRequestTimeout allows for setting the etcd request timeout.
WithTLS allows set TLS config.
WithURL allows setting host name, user + password and tls.Config from url like "etcd://user:pass@localhost:2379?cert=path_cert&key=path_to_key&ca=path_to_ca_certs".

# Constants

DefaultCacheTimeout is the default timeout for a health check when waiting for a response from the cache.
DefaultDialTimeout is the default dial timeout for the etc client.
DefaultEndpoint is the default etcd endpoint.
DefaultRequestTimeout is the default request timeout for the etc client.

# Variables

ErrKeyNotFound is the error returned when the key requested is not found.
ErrTxNotWritable is the error returned when an mutable operation is called during a non-writable transaction.

# Structs

Bucket is a key value bucket.
Pair is a struct for key value pairs.
Tx is a etcd transaction.

# Type aliases

Option to change behavior of Open().