web

package
v0.0.0-...-8fa2440 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Router *mux.Router
View Source
var ServerKey int
View Source
var _, Log = xlog.New("web")

Functions

func Front_GET

func Front_GET(rw http.ResponseWriter, req *http.Request)

func NotFound

func NotFound(rw http.ResponseWriter, req *http.Request)

Types

type Config

type Config struct {
	SessionConfig *session.Config
	Server        interface{}
	NoForceSSL    bool
	StripWWW      bool
	BaseURL       string
	HTTPServer    graceful.Server

	CAPTCHA *captcha.Config
	// contains filtered or unexported fields
}

func (*Config) GetCAPTCHA

func (cfg *Config) GetCAPTCHA() *captcha.Config

func (*Config) Handler

func (cfg *Config) Handler(h http.Handler) http.Handler

func (*Config) Listen

func (cfg *Config) Listen() error

func (*Config) Serve

func (cfg *Config) Serve() error

func (*Config) SetStatus

func (cfg *Config) SetStatus(status string)

func (*Config) Start

func (cfg *Config) Start() error

func (*Config) StatusChan

func (cfg *Config) StatusChan() <-chan string

func (*Config) Stop

func (cfg *Config) Stop() error

Directories

Path Synopsis
Package ac provides facilities for generating and verifying anti-CSRF authentication codes.
Package ac provides facilities for generating and verifying anti-CSRF authentication codes.
Package assetmgr facilitates the automatic generation and live updation of asset cachebusting tags as files are changed.
Package assetmgr facilitates the automatic generation and live updation of asset cachebusting tags as files are changed.
Package authn provides authentication functions.
Package authn provides authentication functions.
Package authz provides login requirement wrappers for HTTP handlers.
Package authz provides login requirement wrappers for HTTP handlers.
Package cspreport provides facilities for logging CSP and HPKP violation reports.
Package cspreport provides facilities for logging CSP and HPKP violation reports.
Package errorhandler provides a panic handler for HTTP requests which serves an error notice and optionally sends e.
Package errorhandler provides a panic handler for HTTP requests which serves an error notice and optionally sends e.
Package miscctx provides miscellaneous context items which can be associated with an HTTP request.
Package miscctx provides miscellaneous context items which can be associated with an HTTP request.
Package opts provides miscellaneous configurable globals commonly required by web application servers.
Package opts provides miscellaneous configurable globals commonly required by web application servers.
Package origin provides utilities for determining the remote IP and SSL use of HTTP connections in complex proxied backend environments.
Package origin provides utilities for determining the remote IP and SSL use of HTTP connections in complex proxied backend environments.
Package servicenexus provides prefixed access to the net/http DefaultServeMux, gated to admit only internal requests.
Package servicenexus provides prefixed access to the net/http DefaultServeMux, gated to admit only internal requests.
Package session provides session storage facilities.
Package session provides session storage facilities.
storage
Session storage, for use with session-pinning webservers only.
Session storage, for use with session-pinning webservers only.
storage/memorysession
Package memorysession provides an in-memory session store.
Package memorysession provides an in-memory session store.
storage/redissession
Package redissession provides a Redis-based session store.
Package redissession provides a Redis-based session store.
Package tpl provides facilities for loading and displaying templates.
Package tpl provides facilities for loading and displaying templates.
Package tplctx provides basic amenities to be provided to templates as a context object.
Package tplctx provides basic amenities to be provided to templates as a context object.
Package weberror provides facilities for showing generic error pages based on HTTP status codes.
Package weberror provides facilities for showing generic error pages based on HTTP status codes.

Jump to

Keyboard shortcuts

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