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

package hangouts

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

Index

Package Files

hangouts.go hangouts_config.go hangouts_json.go

Constants

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

type Config Uses

type Config struct {
    standard.QuerylessConfig
    standard.EnumlessConfig
    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 {
    standard.Standard
    // 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.