njs_static

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileIndex = "index.html"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Static

type Static interface {
	Register(register njs_router.RegisterRouter)

	SetDownloadAll()
	SetDownload(file string)
	IsDownload(file string) bool
	Has(file string) bool
	Find(file string) ([]byte, error)

	Health() error
	Get(c *gin.Context)
}

func NewStatic

func NewStatic(hasIndex bool, prefix string, box packr.Box, Header func() map[string]string) Static

Jump to

Keyboard shortcuts

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