teamsplugin

package
v0.0.0-...-5d8c6d8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

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

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

Jump to

Keyboard shortcuts

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