webapp

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	// ExcludedPathPrefixes
	// 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)

Types

type Controller added in v0.1.0

type Controller struct{}

Controller ...

func NewController added in v0.1.0

func NewController() *Controller

NewController ...

func (*Controller) SetRoutes added in v0.1.0

func (c *Controller) SetRoutes(ginRouter gin.IRouter, grpcRouter *grpc.Gateway)

SetRoutes registers this handler's routes.

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