plg_editor_onlyoffice

package
v0.0.0-...-bec2cf3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

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