path

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// API paths: {PluginURL}/api/v1/...
	API = "/api/v1"

	// User-agent ping
	Ping = "/ping"

	// Services for Apps.
	KV                = "/kv"
	OAuth2App         = "/oauth2/app"
	OAuth2CreateState = "/oauth2/create-state"
	OAuth2User        = "/oauth2/user"
	Subscribe         = "/subscribe"
	Unsubscribe       = "/unsubscribe"

	// Invoke.
	Call = "/call"

	// Administration.
	EnableApp        = "/enable-app"
	DisableApp       = "/disable-app"
	InstallApp       = "/install-app"
	UninstallApp     = "/uninstall-app"
	UpdateAppListing = "/update-app-listing"

	// Marketplace and local manifest store.
	Marketplace = "/marketplace"

	// APIs for user agents.
	BotIDs      = "/bot-ids"
	OAuthAppIDs = "/oauth-app-ids"
)
View Source
const (
	Apps = "/apps"

	// OAuth2 App's HTTP endpoints in the {PluginURL}/apps/{AppID} space.
	MattermostOAuth2Connect  = "/oauth2/mattermost/connect"
	MattermostOAuth2Complete = "/oauth2/mattermost/complete"
	RemoteOAuth2Connect      = "/oauth2/remote/connect"
	RemoteOAuth2Complete     = "/oauth2/remote/complete"

	// Root Call path for incoming webhooks from remote (3rd party) systems.
	// Each webhook URL should be in the form:
	// "{PluginURL}/apps/{AppID}/webhook/{PATH}/.../?secret=XYZ", and it will
	// invoke a Call with "/webhook/{PATH}"."
	Webhook = "/webhook"

	Bindings = "/bindings"

	// Static assets are served from {PluginURL}/static/...
	StaticFolder = "static"
	Static       = "/" + StaticFolder
)

App (proxy) paths: {PluginURL}/apps/{AppID}/...

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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