plg_editor_onlyoffice

package
v0.0.0-...-612c5e9 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SECRET_KEY_DERIVATE_FOR_ONLYOFFICE string
	OnlyOfficeCache                    *cache.Cache
)

Functions

func FetchContentHandler

func FetchContentHandler(res http.ResponseWriter, req *http.Request)

func IframeContentHandler

func IframeContentHandler(ctx *App, res http.ResponseWriter, req *http.Request)

func OnlyOfficeEventHandler

func OnlyOfficeEventHandler(res http.ResponseWriter, req *http.Request)

func StaticHandler

func StaticHandler(res http.ResponseWriter, req *http.Request)

Types

type OnlyOfficeCacheData

type OnlyOfficeCacheData struct {
	Path string
	Save func(path string, file io.Reader) error
	Cat  func(path string) (io.ReadCloser, error)
}

type OnlyOfficeEventObject

type OnlyOfficeEventObject struct {
	Actions []struct {
		Type   int    `json: "type"`
		UserId string `json: "userid" `
	} `json: "actions"`
	ChangesURL    string `json: "changesurl"`
	Forcesavetype int    `json: "forcesavetype"`
	History       struct {
		ServerVersion string `json: "serverVersion"`
		Changes       []struct {
			Created string `json: "created"`
			User    struct {
				Id   string `json: "id"`
				Name string `json: "name"`
			}
		} `json: "changes"`
	} `json: "history"`
	Key      string   `json: "key"`
	Status   int      `json: "status"`
	Url      string   `json: "url"`
	UserData string   `json: "userdata"`
	Lastsave string   `json: "lastsave"`
	Users    []string `json: "users"`
}

Jump to

Keyboard shortcuts

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