Documentation
¶
Index ¶
- type MessageCard
- type MessageCardFact
- type MessageCardSection
- type TeamsPlugin
- func (p *TeamsPlugin) OnLoad(ctx *plugins.PluginContext) error
- func (p *TeamsPlugin) OnSessionCreated(ctx *plugins.PluginContext, session interface{}) error
- func (p *TeamsPlugin) OnSessionHibernated(ctx *plugins.PluginContext, session interface{}) error
- func (p *TeamsPlugin) OnUnload(ctx *plugins.PluginContext) error
- func (p *TeamsPlugin) OnUserCreated(ctx *plugins.PluginContext, user interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageCard ¶
type MessageCard struct {
Type string `json:"@type"`
Context string `json:"@context"`
ThemeColor string `json:"themeColor,omitempty"`
Title string `json:"title,omitempty"`
Summary string `json:"summary,omitempty"`
Text string `json:"text,omitempty"`
Sections []MessageCardSection `json:"sections,omitempty"`
}
MessageCard represents a Teams message card
type MessageCardFact ¶
MessageCardFact represents a fact in a message card
type MessageCardSection ¶
type MessageCardSection struct {
ActivityTitle string `json:"activityTitle,omitempty"`
ActivitySubtitle string `json:"activitySubtitle,omitempty"`
ActivityText string `json:"activityText,omitempty"`
ActivityImage string `json:"activityImage,omitempty"`
Facts []MessageCardFact `json:"facts,omitempty"`
Text string `json:"text,omitempty"`
}
MessageCardSection represents a section in a message card
type TeamsPlugin ¶
type TeamsPlugin struct {
plugins.BasePlugin
// contains filtered or unexported fields
}
TeamsPlugin implements Microsoft Teams notification integration
func NewTeamsPlugin ¶
func NewTeamsPlugin() *TeamsPlugin
NewTeamsPlugin creates a new Teams plugin instance
func (*TeamsPlugin) OnLoad ¶
func (p *TeamsPlugin) OnLoad(ctx *plugins.PluginContext) error
OnLoad is called when the plugin is loaded
func (*TeamsPlugin) OnSessionCreated ¶
func (p *TeamsPlugin) OnSessionCreated(ctx *plugins.PluginContext, session interface{}) error
OnSessionCreated is called when a session is created
func (*TeamsPlugin) OnSessionHibernated ¶
func (p *TeamsPlugin) OnSessionHibernated(ctx *plugins.PluginContext, session interface{}) error
OnSessionHibernated is called when a session is hibernated
func (*TeamsPlugin) OnUnload ¶
func (p *TeamsPlugin) OnUnload(ctx *plugins.PluginContext) error
OnUnload is called when the plugin is unloaded
func (*TeamsPlugin) OnUserCreated ¶
func (p *TeamsPlugin) OnUserCreated(ctx *plugins.PluginContext, user interface{}) error
OnUserCreated is called when a user is created
Click to show internal directories.
Click to hide internal directories.