func HashRingConfig(c *hashring.Configuration) Option {
	return func(r *Ringpop) error {
		r.configHashRing = c
		return nil
	}
}
HashRingConfig takes a `HashRingConfiguration` struct that can be used to
configure the hash ring.

Example:

rp, err := ringpop.New("my-app",
ringpop.Channel(myChannel),
ringpop.HashRingConfig(&HashRingConfiguration{
ReplicaPoints: 100,
}),
)

See documentation on the `HashRingConfiguration` struct for more information
about what options are available.
package ringpop
import (
	"errors"
	"time"
	"github.com/benbjohnson/clock"
	log "github.com/uber-common/bark"
	"github.com/uber/ringpop-go/hashring"
	"github.com/uber/ringpop-go/logging"
	"github.com/uber/ringpop-go/membership"
	"github.com/uber/ringpop-go/shared"
	"github.com/uber/ringpop-go/swim"
	"github.com/uber/ringpop-go/util"
)
type configuration struct {
	App string
	MembershipChecksumStatPeriod time.Duration
	RingChecksumStatPeriod       time.Duration
	StateTimeouts swim.StateTimeouts
	LabelLimits swim.LabelOptions
	InitialLabels swim.LabelMap
	SelfEvict swim.SelfEvictOptions
	RequiresAppInPing bool
}
type Option func(*Ringpop) error
func applyOptions(r *Ringpop, opts []Option) error {
	for _, option := range opts {
		err := option(r)
		if err != nil {
			return err
		}
	}
	return nil
}
func checkOptions(rp *Ringpop) []error {
	errs := []error{}
	if rp.channel == nil {
		errs = append(errs, errors.New("channel is required"))
	}
	if rp.addressResolver == nil {
		errs = append(errs, errors.New("address resolver is nil"))
	}
	return errs
}
func Clock(c clock.Clock) Option {
	return func(r *Ringpop) error {
		if c == nil {
			return errors.New("clock is required")
		}
		r.clock = c
		return nil
	}
}
func Channel(ch shared.TChannel) Option {
	return func(r *Ringpop) error {
		r.channel = ch
		return nil
	}
}