static

package module
v0.0.0-...-240411f Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 10 Imported by: 2

README

static

static file serving module for NovaKit

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(opts ...Options) nova.HandlerFunc

Handler create a nova.HandlerFunc

Types

type Options

type Options struct {
	// Prefix path prefix of url
	Prefix string
	// Directory directory to serve, will use WEBROOT envvar
	Directory string
	// BinFS using binfs, not suggested with WEBROOT envvar
	BinFS bool
	// Index serving index.html
	Index bool
}

Options options for static

Jump to

Keyboard shortcuts

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