Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Scheme is the identifying part of this service's configuration URL Scheme = "teams" // LegacyHost is the default host for legacy webhook requests LegacyHost = "outlook.office.com" // LegacyPath is the initial path of the webhook URL for legacy webhook requests LegacyPath = "webhook" // Path is the initial path of the webhook URL for domain-scoped webhook requests Path = "webhookb2" // ProviderName is the name of the Teams integration provider ProviderName = "IncomingWebhook" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { standard.EnumlessConfig Group string `url:"user" optional:""` Tenant string `url:"host" optional:""` AltID string `url:"path1" optional:""` GroupOwner string `url:"path2" optional:""` 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.