kubernetes/vendor/go.etcd.io/etcd/server/v3/etcdserver/api/membership/member.go

type RaftAttributes

type Attributes

type Member

// NewMember creates a Member without an ID and generates one based on the
// cluster name, peer URLs, and time. This is used for bootstrapping/adding new member.
func NewMember(name string, peerURLs types.URLs, clusterName string, now *time.Time) *Member {}

// NewMemberAsLearner creates a learner Member without an ID and generates one based on the
// cluster name, peer URLs, and time. This is used for adding new learner member.
func NewMemberAsLearner(name string, peerURLs types.URLs, clusterName string, now *time.Time) *Member {}

func computeMemberId(peerURLs types.URLs, clusterName string, now *time.Time) types.ID {}

func newMember(name string, peerURLs types.URLs, memberId types.ID, isLearner bool) *Member {}

// PickPeerURL chooses a random address from a given Member's PeerURLs.
// It will panic if there is no PeerURLs available in Member.
func (m *Member) PickPeerURL() string {}

func (m *Member) Clone() *Member {}

func (m *Member) IsStarted() bool {}

type MembersByID

func (ms MembersByID) Len() int           {}

func (ms MembersByID) Less(i, j int) bool {}

func (ms MembersByID) Swap(i, j int)      {}

type MembersByPeerURLs

func (ms MembersByPeerURLs) Len() int {}

func (ms MembersByPeerURLs) Less(i, j int) bool {}

func (ms MembersByPeerURLs) Swap(i, j int) {}