Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Scheme is the identifying part of this service's configuration URL Scheme = "teams" // DefaultHost is the default host for the webhook request DefaultHost = "outlook.office.com" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { standard.EnumlessConfig WebhookParts [4]string Title string `key:"title" optional:""` Color string `key:"color" optional:""` Host string `key:"host" optional:"" default:"outlook.office.com"` }
Config for use within the teams plugin
func ConfigFromWebhookURL ¶ added in v0.4.1
ConfigFromWebhookURL creates a new Config from a parsed Teams Webhook URL
func (*Config) SetFromWebhookURL ¶ added in v0.4.0
SetFromWebhookURL updates the config WebhookParts from a teams webhook URL
type Service ¶
Service providing teams as a notification service
func (*Service) GetConfigURLFromCustom ¶ added in v0.4.0
GetConfigURLFromCustom creates a regular service URL from one with a custom host
func (*Service) Initialize ¶
Initialize loads ServiceConfig from configURL and sets logger for this Service
Click to show internal directories.
Click to hide internal directories.