webapp

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RelativeFileStoragePathPrefix = "web/webapp"
)

Variables

View Source
var (
	// nodes below are not part of the publicdocument tree of the application.
	// No file contained in the WEB-INF|META-INF directory maybe served directly to a client by the container
	// Also, any requests from the client to access the resources in WEB-INF/ or META-INF/ directory must be
	// returned with a SC_NOT_FOUND(404) response.
	// see http://download.oracle.com/otn-pub/jcp/servlet-2.4-fr-spec-oth-JSpec/servlet-2_4-fr-spec.pdf
	ExcludedPathPrefixes = []string{"/WEB-INF/", "/META-INF/"}
)

Functions

func ResolveWeb

func ResolveWeb(filePath string) (webPath string)

func SetRouter

func SetRouter(router gin.IRouter) gin.IRouter

Types

type Dir

type Dir string

func (Dir) Open

func (d Dir) Open(name string) (http.File, error)

Open implements FileSystem using os.Open, opening files for reading rooted and relative to the directory d.

Jump to

Keyboard shortcuts

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