Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Type string `json:"@type"` Name string `json:"name"` Targets []Target `json:"targets"` }
Action is a sum type, but only those of OpenUri are listed.
func NewOpenURIAction ¶
type MessageCard ¶
type MessageCard struct { Type string `json:"@type"` Context string `json:"@context"` ThemeColor string `json:"themeColor"` Summary string `json:"summary"` Sections []Section `json:"sections"` Actions []Action `json:"potentialAction"` }
func NewMessageCard ¶
func NewMessageCard( summary string, sections []Section, actions []Action, ) MessageCard
type SendNotificationFunc ¶
type SendNotificationFunc func(ctx context.Context, card MessageCard) error
func SendTeamsNotification ¶
func SendTeamsNotification( webHookURL string, ) SendNotificationFunc
Click to show internal directories.
Click to hide internal directories.