cmd

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

*

*
* (c) Copyright Ascensio System SIA 2023
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*

*

*
* (c) Copyright Ascensio System SIA 2023
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*

*

*
* (c) Copyright Ascensio System SIA 2023
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*

*

*
* (c) Copyright Ascensio System SIA 2023
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*

Index

Constants

This section is empty.

Variables

View Source
var (
	PluginID      = integration.Manifest.Id
	PluginVersion = integration.Manifest.Version
)
View Source
var ErrCreateBotProfile = errors.New(_OnlyofficeLoggerPrefix + "could not create bot profile")
View Source
var ErrDeprecatedDocumentServerVersion = errors.New(_OnlyofficeLoggerPrefix + "old document server version")
View Source
var ErrLoadBotProfileImage = errors.New(_OnlyofficeLoggerPrefix + "could not load bot profile image")
View Source
var ErrParseDocumentServerVersion = errors.New(_OnlyofficeLoggerPrefix + "could not parse document server version")
View Source
var ErrSetBotProfileImage = errors.New(_OnlyofficeLoggerPrefix + "could not set bot profile image")

Functions

This section is empty.

Types

type BadConfigurationError

type BadConfigurationError struct {
	Property string
	Reason   string
}

func (*BadConfigurationError) Error

func (e *BadConfigurationError) Error() string

type DocumentServerCommandResponseError

type DocumentServerCommandResponseError struct {
	Code int
}

func (*DocumentServerCommandResponseError) Error

type InvalidDocumentServerAddressError

type InvalidDocumentServerAddressError struct {
	Reason string
}

func (*InvalidDocumentServerAddressError) Error

type Plugin

type Plugin struct {
	plugin.MattermostPlugin

	Bot                 bot.Bot
	OnlyofficeHelper    onlyoffice.OnlyofficeHelper
	OnlyofficeConverter converter.Converter
	Encoder             crypto.Encoder
	Manager             crypto.JwtManager
	EditorTemplate      *template.Template
	Filestore           filestore.FileBackend
	// contains filtered or unexported fields
}

func (*Plugin) EnsureBot

func (p *Plugin) EnsureBot() (bot.Bot, error)

func (*Plugin) OnActivate

func (p *Plugin) OnActivate() error

func (*Plugin) OnConfigurationChange

func (p *Plugin) OnConfigurationChange() error

func (*Plugin) ServeHTTP

func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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