Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamsAction ¶
type TeamsMessage ¶
type TeamsMessage struct {
Type string `json:"@type"` // Always "MessageCard"
Summary string `json:"summary"` // Required: Plain-text summary
ThemeColor string `json:"themeColor,omitempty"` // Optional: Color for the card (hexadecimal)
Title string `json:"title,omitempty"` // Title for the card
Text string `json:"text,omitempty"` // Main content (supports basic markdown)
Sections []Section `json:"sections,omitempty"` // Array of sections
PotentialAction []TeamsAction `json:"potentialAction,omitempty"` // Array of actions
}
func (*TeamsMessage) ToString ¶
func (tm *TeamsMessage) ToString() (string, error)
type TeamsNotifier ¶
type TeamsNotifier struct {
// contains filtered or unexported fields
}
TeamsNotifier sends messages to Microsoft Teams via Incoming Webhook. It implements the Notifier interface.
func NewTeamsNotifier ¶
func NewTeamsNotifier(request *entity.Request) *TeamsNotifier
NewTeamsNotifier creates a new TeamsNotifier with the provided request.
Click to show internal directories.
Click to hide internal directories.