config

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

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BotUserName    = "mscalendar"
	BotDisplayName = "Microsoft Calendar"
	BotDescription = "Created by the Microsoft Calendar Plugin."

	ApplicationName    = "Microsoft Calendar"
	Repository         = "mattermost-plugin-mscalendar"
	CommandTrigger     = "mscalendar"
	TelemetryShortName = "mscalendar"

	PathOAuth2              = "/oauth2"
	PathComplete            = "/complete"
	PathAPI                 = "/api/v1"
	PathPostAction          = "/action"
	PathRespond             = "/respond"
	PathAccept              = "/accept"
	PathDecline             = "/decline"
	PathTentative           = "/tentative"
	PathConfirmStatusChange = "/confirm"
	PathNotification        = "/notification/v1"
	PathEvent               = "/event"

	FullPathEventNotification = PathNotification + PathEvent
	FullPathOAuth2Redirect    = PathOAuth2 + PathComplete

	EventIDKey = "EventID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	PluginID               string
	BuildDate              string
	BuildHash              string
	BuildHashShort         string
	MattermostSiteHostname string
	MattermostSiteURL      string
	PluginURL              string
	PluginURLPath          string
	PluginVersion          string
	StoredConfig
}

Config represents the the metadata handed to all request runners (command, http).

type StoredConfig

type StoredConfig struct {
	OAuth2Authority    string
	OAuth2ClientID     string
	OAuth2ClientSecret string
	bot.Config
	EnableStatusSync   bool
	EnableDailySummary bool
}

StoredConfig represents the data stored in and managed with the Mattermost config.

Jump to

Keyboard shortcuts

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