types

package
v0.0.0-...-12912d6 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendApps

func SendApps(w http.ResponseWriter, req *http.Request)

SendApps send apps as response from an http requests

func SendFilesACLs

func SendFilesACLs(w http.ResponseWriter, req *http.Request)

SendFilesACLs send files acls as response from an http requests

func SendInfos

func SendInfos(w http.ResponseWriter, req *http.Request, officeServer string)

SendInfos send infos as response from an http requests

func SetApps

func SetApps(w http.ResponseWriter, req *http.Request)

SetApps sets apps from an http request

Types

type App

type App struct {
	Name       string `json:"name"`
	Icon       string `json:"icon"`
	Rank       int    `json:"rank"`
	Iframed    bool   `json:"iframed"`
	IframePath string `json:"iframepath"`
	appserver.App
}

App represents a app serving static content proxying a web server

type Bookmark

type Bookmark struct {
	Name string `json:"name"`
	URL  string `json:"url"`
	Icon string `json:"icon"`
}

Bookmark represents a bookmark shared by the server with the client into the infos

type ByRank

type ByRank []App

ByRank implements sort.Interface for []App based on the Rank field

func (ByRank) Len

func (a ByRank) Len() int

func (ByRank) Less

func (a ByRank) Less(i, j int) bool

func (ByRank) Swap

func (a ByRank) Swap(i, j int)

type FilesACL

type FilesACL struct {
	Name        string   `json:"name"`
	Path        string   `json:"path"`
	Directory   string   `json:"directory"`
	Roles       []string `json:"roles"`
	Permissions string   `json:"permissions"`
	BasicAuth   bool     `json:"basicauth"`
	UsedGB      uint64   `json:"usedgb"`
	TotalGB     uint64   `json:"totalgb"`
}

FilesACL represents an access control list for an directory exposed with webdav

type Infos

type Infos struct {
	ServerVersion string     `json:"server_version"`
	ClientVersion string     `json:"client_version"`
	Bookmarks     []Bookmark `json:"bookmarks"`
	OfficeServer  string     `json:"office_server"`
}

Infos represents global infos shared by the server with the client

func InfosFromJSONFiles

func InfosFromJSONFiles() (Infos, error)

InfosFromJSONFiles returns Infos gotten from several json files

Jump to

Keyboard shortcuts

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