shoutrrr: github.com/containrrr/shoutrrr/pkg/services/gotify Index | Files

package gotify

import "github.com/containrrr/shoutrrr/pkg/services/gotify"

Index

Package Files

gotify.go gotify_config.go gotify_json.go

Constants

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

type Config Uses

type Config struct {
    standard.QuerylessConfig
    standard.EnumlessConfig
    Token   string
    Host    string
    Prority int
}

Config for use within the gotify plugin

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 JSON Uses

type JSON struct {
    Message  string `json:"message"`
    Title    string `json:"title"`
    Priority int    `json:"priority"`
}

JSON is the actual payload being sent to the Gotify API

type Service Uses

type Service struct {
    standard.Standard
    // contains filtered or unexported fields
}

Service providing Gotify as a notification service

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 Gotify

Package gotify imports 10 packages (graph) and is imported by 1 packages. Updated 2019-09-26. Refresh now. Tools for package owners.