shoutrrr: Index | Files

package logger

import ""


Package Files

logger.go logger_config.go


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

type Config Uses

type Config struct {

Config is the configuration object for the Logger Service

func (*Config) GetURL Uses

func (config *Config) GetURL() *url.URL

GetURL returns a URL representation of it's current field values

func (*Config) SetURL Uses

func (config *Config) SetURL(url *url.URL) error

SetURL updates a ServiceConfig from a URL representation of it's field values

type Service Uses

type Service struct {
    // contains filtered or unexported fields

Service is the Logger service struct

func (*Service) Initialize Uses

func (service *Service) Initialize(configURL *url.URL, logger *log.Logger) error

Initialize loads ServiceConfig from configURL and sets logger for this Service

func (*Service) Send Uses

func (service *Service) Send(message string, params *types.Params) error

Send a notification message to log

Package logger imports 6 packages (graph) and is imported by 1 packages. Updated 2019-08-02. Refresh now. Tools for package owners.