gitea: Index | Files

package public

import ""


Package Files

dynamic.go public.go


var KnownPublicEntries = []string{

KnownPublicEntries list all direct children in the `public` directory

func Custom Uses

func Custom(opts *Options) func(next http.Handler) http.Handler

Custom implements the macaron static handler for serving custom assets.

func ServeContent Uses

func ServeContent(w http.ResponseWriter, req *http.Request, fi os.FileInfo, modtime time.Time, content io.ReadSeeker)

ServeContent serve http content

func Static Uses

func Static(opts *Options) func(next http.Handler) http.Handler

Static implements the macaron static handler for serving assets.

func StaticHandler Uses

func StaticHandler(dir string, opts *Options) func(next http.Handler) http.Handler

StaticHandler sets up a new middleware for serving static files in the

type Options Uses

type Options struct {
    Directory   string
    IndexFile   string
    SkipLogging bool
    FileSystem  http.FileSystem
    Prefix      string

Options represents the available options to configure the macaron handler.

Package public imports 10 packages (graph) and is imported by 25 packages. Updated 2021-01-22. Refresh now. Tools for package owners.