func WithResolverPlainHTTP() ResolverOption {
	return func(settings *ResolverSettings) {
		settings.PlainHTTP = true
	}
}
WithResolverPlainHTTP returns a function that sets the PlainHTTP setting to true on resolver.
package auth
import (
	"context"
	"net/http"
)
type (
	LoginOption func(*LoginSettings)
	LoginSettings struct {
		Context   context.Context
		Hostname  string
		Username  string
		Secret    string
		Insecure  bool
		UserAgent string
	}
)
func WithLoginContext(context context.Context) LoginOption {
	return func(settings *LoginSettings) {
		settings.Context = context
	}
}
func WithLoginHostname(hostname string) LoginOption {
	return func(settings *LoginSettings) {
		settings.Hostname = hostname
	}
}
func WithLoginUsername(username string) LoginOption {
	return func(settings *LoginSettings) {
		settings.Username = username
	}
}
func WithLoginSecret(secret string) LoginOption {
	return func(settings *LoginSettings) {
		settings.Secret = secret
	}
}
func WithLoginInsecure() LoginOption {
	return func(settings *LoginSettings) {
		settings.Insecure = true
	}
}
func WithLoginUserAgent(userAgent string) LoginOption {
	return func(settings *LoginSettings) {
		settings.UserAgent = userAgent
	}
}
type (
	ResolverOption func(*ResolverSettings)
	ResolverSettings struct {
		Client    *http.Client
		PlainHTTP bool
		Headers   http.Header
	}
)
func WithResolverClient(client *http.Client) ResolverOption {
	return func(settings *ResolverSettings) {
		settings.Client = client
	}
}