serving

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Writer     http.ResponseWriter
	Request    *http.Request
	LookupPath *LookupPath
	// Parsed representation of Request.URI that is part of LookupPath.Prefix
	SubPath string
}

Handler agregates response/request and lookup path + subpath needed to handle a request and response.

type LookupPath

type LookupPath struct {
	Location           string
	Path               string
	IsNamespaceProject bool
	IsHTTPSOnly        bool
	HasAccessControl   bool
	ProjectID          uint64
}

LookupPath holds a domain project configuration needed to handle a request

type Serving

type Serving interface {
	ServeFileHTTP(Handler) bool
	ServeNotFoundHTTP(Handler)
}

Serving is an interface used to define a serving driver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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