rclone: github.com/ncw/rclone/cmd/serve/httplib/serve/data Index | Files

package data

import "github.com/ncw/rclone/cmd/serve/httplib/serve/data"

Index

Package Files

assets_vfsdata.go data.go

Variables

var Assets = func() http.FileSystem {
    fs := vfsgen۰FS{
        "/": &vfsgen۰DirInfo{
            name:    "/",
            modTime: time.Date(2020, 5, 5, 16, 40, 6, 115915195, time.UTC),
        },
        "/index.html": &vfsgen۰CompressedFileInfo{
            name:             "index.html",
            modTime:          time.Date(2020, 5, 5, 16, 40, 5, 919909715, time.UTC),
            uncompressedSize: 15424,

            compressedContent: []byte("" /* 24334 byte string literal not displayed */),
        },
    }
    fs["/"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
        fs["/index.html"].(os.FileInfo),
    }

    return fs
}()

Assets statically implements the virtual filesystem provided to vfsgen.

func AfterEpoch Uses

func AfterEpoch(t time.Time) bool

AfterEpoch returns the time since the epoch for the given time

func GetTemplate Uses

func GetTemplate(tmpl string) (tpl *template.Template, err error)

GetTemplate returns the HTML template for serving directories via HTTP/Webdav

Package data imports 12 packages (graph). Updated 2020-06-04. Refresh now. Tools for package owners.