wopi

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: AGPL-3.0 Imports: 17 Imported by: 9

Documentation

Overview

Package wopi implements communication with the backend via the WOPI API. It typically enables integration of the Collabora online plugin.

Package wopi serve files using the WOPI protocol

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(inner http.Handler) http.Handler

func Download

func Download(w http.ResponseWriter, r *http.Request)

func GetNodeInfos

func GetNodeInfos(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter() *mux.Router

func UploadStream

func UploadStream(w http.ResponseWriter, r *http.Request)

Types

type File

type File struct {
	BaseFileName     string
	OwnerId          string
	Size             int64
	UserId           string
	Version          string
	UserFriendlyName string
	UserCanWrite     bool
	PydioPath        string
}

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

type Routes

type Routes []Route

Jump to

Keyboard shortcuts

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