package
0.5.0-alpha.5
Repository: https://github.com/phpstudyer/etcd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
Package etcdserverpb is a generated protocol buffer package.
No description provided by the author

# Functions

TODO: move the function to /id pkg maybe? GenID generates a random id that is not equal to 0.
GetClusterFromPeers takes a set of URLs representing etcd peers, and attempts to construct a Cluster by accessing the members endpoint on one of these URLs.
No description provided by the author
No description provided by the author
No description provided by the author
NewClusterFromString returns a Cluster instantiated from the given cluster token and cluster string, by parsing members from a set of discovery-formatted names-to-IPs, like: mach0=http://1.1.1.1,mach0=http://2.2.2.2,mach1=http://3.3.3.3,mach2=http://4.4.4.4.
NewMember creates a Member without an ID and generates one based on the name, peer URLs.
NewServer creates a new EtcdServer from the supplied configuration.
UpgradeWAL converts an older version of the EtcdServer data to the newest version.
ValidateClusterAndAssignIDs validates the local cluster by matching the PeerURLs with the existing cluster.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Attributes represents all the non-raft related attributes of an etcd member.
Cluster is a list of Members that belong to the same raft cluster.
EtcdServer is the production implementation of the Server interface.
No description provided by the author
RaftAttributes represents the raft related attributes of an etcd member.
No description provided by the author
ServerConfig holds the configuration of etcd as taken from the command line or discovery.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author