teams

package
v0.0.0-...-9245cf0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimFirstChar

func TrimFirstChar(s string) string

Microsoft Teams expects the hexidecimal formatted color to not have a "#" at the front Source: https://stackoverflow.com/a/48798875/2199949

Types

type Config

type Config struct {
	Endpoint string
}

Config represents the configuration of a Teams Webhook Sender.

type SimpleTeamsMessageCard

type SimpleTeamsMessageCard struct {
	AtContext  string                `json:"@context"`
	AtType     string                `json:"@type"`
	Sections   []TeamsMessageSection `json:"sections"`
	Summary    string                `json:"summary"`
	ThemeColor string                `json:"themeColor"`
}

type TeamsFact

type TeamsFact struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type TeamsMessageSection

type TeamsMessageSection struct {
	ActivityImage    string      `json:"activityImage"`
	ActivitySubtitle string      `json:"activitySubtitle"`
	ActivityText     string      `json:"activityText"`
	ActivityTitle    string      `json:"activityTitle"`
	Facts            []TeamsFact `json:"facts"`
	Markdown         bool        `json:"markdown"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL