shoutrrr: Index | Files

package hangouts

import ""


Package Files

hangouts.go hangouts_config.go hangouts_json.go


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

type Config Uses

type Config struct {
    URL *url.URL

Config for use within the Hangouts Chat plugin.

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 {
    Text string `json:"text"`

JSON is the actual payload being sent to the Hangouts Chat API.

type Service Uses

type Service struct {
    // contains filtered or unexported fields

Service providing Hangouts Chat 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, _ *types.Params) error

Send a notification message to Hangouts Chat.

Package hangouts imports 8 packages (graph) and is imported by 1 packages. Updated 2020-06-28. Refresh now. Tools for package owners.