MCPcopy
hub / github.com/etcd-io/etcd / applyOpts

Method applyOpts

server/etcdserver/api/membership/cluster_opts.go:32–36  ·  view source on GitHub ↗
(opts []ClusterOption)

Source from the content-addressed store, hash-verified

30}
31
32func (co *ClusterOptions) applyOpts(opts []ClusterOption) {
33 for _, opt := range opts {
34 opt(co)
35 }
36}
37
38// WithMaxLearners sets the maximum number of learners that can exist in the cluster membership.
39func WithMaxLearners(max int) ClusterOption {

Callers 1

newClusterOptsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected