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

Function newClusterOpts

server/etcdserver/api/membership/cluster_opts.go:26–30  ·  view source on GitHub ↗
(opts ...ClusterOption)

Source from the content-addressed store, hash-verified

24type ClusterOption func(*ClusterOptions)
25
26func newClusterOpts(opts ...ClusterOption) *ClusterOptions {
27 clOpts := &ClusterOptions{}
28 clOpts.applyOpts(opts)
29 return clOpts
30}
31
32func (co *ClusterOptions) applyOpts(opts []ClusterOption) {
33 for _, opt := range opts {

Callers 1

NewClusterFunction · 0.85

Calls 1

applyOptsMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…