func WithRaftProvider(raftProvider RaftProvider) Option {
	return func(options *options) {
		options.raftProvider = raftProvider
	}
}
WithRaftProvider sets the raftProvider on the options
package cluster
import (
	"github.com/go-kit/kit/log"
	"github.com/spoke-d/thermionic/internal/cert"
	"github.com/spoke-d/thermionic/internal/clock"
	"github.com/spoke-d/thermionic/internal/config"
	"github.com/spoke-d/thermionic/internal/fsys"
)
type Option func(*options)
type options struct {
	database         Node
	cert             *cert.Info
	nodeConfigSchema config.Schema
	fileSystem       fsys.FileSystem
	raftProvider     RaftProvider
	netProvider      Net
	storeProvider    StoreProvider
	serverProvider   ServerProvider
	sleeper          clock.Sleeper
	logger           log.Logger
	latency          float64
}
func WithNode(database Node) Option {
	return func(options *options) {
		options.database = database
	}
}