models

package
v0.0.0-...-ae2d994 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericParams

type GenericParams struct {
	Mode             string `json:"mode" binding:"Required"`
	OnlyFoldreferers bool   `json:"onlyFolders"` // list
	Path             string `json:"path"`        // ALL
	NewPath          string `json:"newPath"`     // move/rename, copy
	Content          string `json:"content"`     // edit
	Name             string `json:"name"`        // addfolder
	Perms            string `json:"perms"`       // changepermissions
	PermsCode        string `json:"permsCode"`   // changepermissions
	Recursive        bool   `json:"recursive"`   // changepermissions
	Destination      string `json:"destination"` // compress, extract
	SourceFile       string `json:"sourceFile"`  // extract
	Preview          bool   `json:"preview"`     // download
}

type GenericReq

type GenericReq struct {
	Params GenericParams `json:"params" binding:"Required"`
}

type GenericResp

type GenericResp struct {
	Result GenericRespBody `json:"result" binding:"Required"`
}

type GenericRespBody

type GenericRespBody struct {
	Success bool   `json:"success"`
	Error   string `json:"error"`
}

type GetContentResp

type GetContentResp struct {
	Result string `json:"result" binding:"Required"`
}

type ListDirEntry

type ListDirEntry struct {
	Name   string `json:"name" binding:"Required"`
	Rights string `json:"rights" binding:"Required"`
	Size   string `json:"size" binding:"Required"`
	Date   string `json:"date" binding:"Required"`
	Type   string `json:"type" binding:"Required"`
}

type ListDirResp

type ListDirResp struct {
	Result []ListDirEntry `json:"result" binding:"Required"`
}

Jump to

Keyboard shortcuts

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