Adding upstream version 0.8.9.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
3b2c48b5e4
commit
c0c4addb85
285 changed files with 25880 additions and 0 deletions
30
pkg/services/logger/logger_config.go
Normal file
30
pkg/services/logger/logger_config.go
Normal file
|
@ -0,0 +1,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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue