Versions in this module Expand all Collapse all v0 v0.0.4 Mar 25, 2020 Changes in this version + const Action + const Preview + const PreviewDownload + func PreviewHtml(mimeType string) (string, bool) + func RouterFilePath(router string) string + func RouterStatic(router string) string + func UrlPath(u, router string) string + type DriveFileTemplate struct + ChildCount uint64 + DownloadUrl string + EnablePreview bool + MimeType string + ModifiedTime string + Name string + Path string + Size string + func FilesToTemplate(fs []*api.DriveFile) []*DriveFileTemplate + func FormatFileToTemplate(d *api.DriveFile) *DriveFileTemplate + type Mux struct + func NewMux(odh *handler.OneDriveHandler) *Mux + func (m *Mux) GetOneDriveFile(w http.ResponseWriter, r *http.Request) + func (m *Mux) Render(w http.ResponseWriter, data interface{}, tplHtml ...string) error + func (m *Mux) Run() error + func (m *Mux) Shutdown()