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