binfsecho

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultStaticConfig = StaticConfig{
		Skipper: middleware.DefaultSkipper,
		Prefix:  "/",
		Root:    "public",
		Index:   []string{"index.html"},
	}
)

Functions

func Static

func Static(root string) echo.MiddlewareFunc

func StaticWithConfig

func StaticWithConfig(cfg StaticConfig) echo.MiddlewareFunc

Types

type StaticConfig

type StaticConfig struct {
	Skipper middleware.Skipper
	Prefix  string
	Root    string
	Index   []string
}

Jump to

Keyboard shortcuts

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