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

package ifttt

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

Index

Package Files

ifttt.go ifttt_config.go ifttt_json.go

Constants

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

type Config Uses

type Config struct {
    standard.EnumlessConfig
    WebHookID         string
    Events            []string
    Value1            string
    Value2            string
    Value3            string
    UseMessageAsValue uint8 `desc:"" default:"2"`
}

Config is the configuration needed to send IFTTT notifications

func (*Config) Get Uses

func (config *Config) Get(key string) (string, error)

Get returns the value of a Query field

func (*Config) GetURL Uses

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

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

func (*Config) QueryFields Uses

func (config *Config) QueryFields() []string

QueryFields returns the fields that are part of the Query of the service URL

func (*Config) Set Uses

func (config *Config) Set(key string, value string) error

Set updates the value of a Query field

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 {
    standard.Standard
    // contains filtered or unexported fields
}

Service sends notifications to a IFTTT webhook

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 a IFTTT webhook

Package ifttt imports 12 packages (graph) and is imported by 1 packages. Updated 2020-06-22. Refresh now. Tools for package owners.