func Map(configMap config.Map) Option {
	return func(options *options) {
		options.configMap = configMap
	}
}
Map sets the configMap on the options
package node
import (
	"github.com/pkg/errors"
	"github.com/spoke-d/thermionic/internal/config"
	"github.com/spoke-d/thermionic/internal/db"
)
type Tx interface {
	Config() (map[string]string, error)
	UpdateConfig(map[string]string) error
	RaftNodes() ([]db.RaftNode, error)
}
type Option func(*options)
type options struct {
	nodeTx    Tx
	configMap config.Map
}
func NodeTx(nodeTx Tx) Option {
	return func(options *options) {
		options.nodeTx = nodeTx
	}
}