Versions in this module Expand all Collapse all v0 v0.9.4 Feb 28, 2019 Changes in this version + const CliCAFile + const CliCertFile + const CliKeyFile + func ListMembers(clientURLs []string, tc *tls.Config) (*clientv3.MemberListResponse, error) + func MemberNameFromPeerURL(pu string) (string, error) + func NewTLSConfig(certData, keyData, caData []byte) (*tls.Config, error) + func RemoveMember(clientURLs []string, tc *tls.Config, id uint64) error + type Member struct + ID uint64 + Name string + Namespace string + SecureClient bool + SecurePeer bool + func (m *Member) Addr() string + func (m *Member) ClientURL() string + func (m *Member) ListenClientURL() string + func (m *Member) ListenPeerURL() string + func (m *Member) PeerURL() string + type MemberSet map[string]*Member + func NewMemberSet(ms ...*Member) MemberSet + func (ms MemberSet) Add(m *Member) + func (ms MemberSet) ClientURLs() []string + func (ms MemberSet) Diff(other MemberSet) MemberSet + func (ms MemberSet) IsEqual(other MemberSet) bool + func (ms MemberSet) PeerURLPairs() []string + func (ms MemberSet) PickOne() *Member + func (ms MemberSet) Remove(name string) + func (ms MemberSet) Size() int + func (ms MemberSet) String() string