File: logger_config.go

package info (click to toggle)
golang-github-nicholas-fedor-shoutrrr 0.8.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,332 kB
  • sloc: sh: 61; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 657 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package logger

import (
	"net/url"

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

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

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

// GetURL returns a URL representation of it's current field values.
func (config *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 (config *Config) SetURL(_ *url.URL) error {
	return nil
}