Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) AcceptsAllDomain ¶ added in v0.5.0
func (*Handler) CheckValidDomain ¶
func (*Handler) ResolveSite ¶ added in v0.5.1
func (h *Handler) ResolveSite(host string) (*site.Descriptor, error)
type HandlerConfig ¶
type HandlerConfig struct { HostPattern string Middlewares []Middleware }
type Middleware ¶
type SiteHandler ¶
type SiteHandler struct {
// contains filtered or unexported fields
}
func NewSiteHandler ¶
func NewSiteHandler(desc *site.Descriptor, middlewares []Middleware) *SiteHandler
func (*SiteHandler) ID ¶
func (h *SiteHandler) ID() string
func (*SiteHandler) ServeHTTP ¶
func (h *SiteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ref http.fileHandler.ServeHTTP
Click to show internal directories.
Click to hide internal directories.