func WithMajordomo(majordomo majordomo.Service) Parameter {
	return parameterFunc(func(p *parameters) {
		p.majordomo = majordomo
	})
}
WithMajordomo sets majordomo for the module.
package dynamic
import (
	"errors"
	"github.com/rs/zerolog"
	"github.com/wealdtech/go-majordomo"
)
type parameters struct {
	logLevel  zerolog.Level
	location  string
	majordomo majordomo.Service
}
type Parameter interface {
	apply(*parameters)
}
type parameterFunc func(*parameters)
func (f parameterFunc) apply(p *parameters) {
	f(p)
}
func WithLogLevel(logLevel zerolog.Level) Parameter {
	return parameterFunc(func(p *parameters) {
		p.logLevel = logLevel
	})
}
func WithLocation(location string) Parameter {
	return parameterFunc(func(p *parameters) {
		p.location = location
	})
}