Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandler ¶
func GetHandler(handleFunc getHandleFunc) func(w http.ResponseWriter, r *http.Request)
func PostHandler ¶
func PostHandler(handleFunc postHandleFunc) func(w http.ResponseWriter, r *http.Request)
Types ¶
type FileInfo ¶
type FileInfo struct { Path string `json:"path,omitempty"` Name string `json:"name,omitempty"` FileExtension string `json:"fileExtension,omitempty"` Size int `json:"size,omitempty"` Tags []string `json:"tags,omitempty"` Date time.Time `json:"date,omitempty"` ModTime time.Time `json:"modTime,omitempty"` }
type Notification ¶
type RenameTagRequest ¶
type Request ¶
type Request struct { TagsFilter string `json:"tagsFilter,omitempty"` SelectedTags []string `json:"selectedTags,omitempty"` // FileInfos []string `json:"fileInfos,omitempty"` // File paths for which file infos are requested RenameTag *RenameTagRequest `json:"renameTag,omitempty"` LanguageTag string `json:"languageTag,omitempty"` }
type Response ¶
type Response struct { Notification *Notification `json:"notification,omitempty"` Logs []*Log `json:"logs,omitempty"` Title string `json:"title,omitempty"` Version string `json:"version,omitempty"` ArchivePath string `json:"archivePath,omitempty"` CurrentLanguage *Language `json:"currentLanguage,omitempty"` Languages []Language `json:"languages,omitempty"` UndoRedoCount []int `json:"undoRedoCount,omitempty"` Tags []*Tag `json:"tags,omitempty"` Files []FileInfo `json:"files,omitempty"` // File infos }
Click to show internal directories.
Click to hide internal directories.