package logger

import (
	"net/url"

	"github.com/nicholas-fedor/shoutrrr/pkg/services/standard"
)

// Config is the configuration object for the Logger Service.
type Config struct {
	standard.EnumlessConfig
}

const (
	// Scheme is the identifying part of this service's configuration URL.
	Scheme = "logger"
)

// GetURL returns a URL representation of it's current field values.
func (c *Config) GetURL() *url.URL {
	return &url.URL{
		Scheme: Scheme,
		Opaque: "//", // Ensures "logger://" output
	}
}

// SetURL updates a ServiceConfig from a URL representation of it's field values.
func (c *Config) SetURL(_ *url.URL) error {
	return nil
}
