http_handlers

package
v0.0.0-...-fb72fe2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleHTTPBLLookup

func HandleHTTPBLLookup(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry) httpHandler

func HandleHTTPDefault

func HandleHTTPDefault(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry) httpHandler

func HandleHTTPGeoLookup

func HandleHTTPGeoLookup(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry) httpHandler

func HandleHTTPRedirector

func HandleHTTPRedirector(cfg runtime.NSnitchConfig, rt *runtime.Runtime, d *runtime.ServerDomain, lgr *logrus.Entry) httpHandler

func HandleHTTPReport

func HandleHTTPReport(cfg runtime.NSnitchConfig, rt *runtime.Runtime, d *runtime.ServerDomain, lgr *logrus.Entry) httpHandler

func HandleHTTPSpeedtest

func HandleHTTPSpeedtest(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry) httpHandler

func HandleHTTPStatsLookup

func HandleHTTPStatsLookup(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry) httpHandler

func HandleHTTPStatus

func HandleHTTPStatus(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry) httpHandler

func HandleHTTPWellKnown

func HandleHTTPWellKnown(cfg runtime.NSnitchConfig, rt *runtime.Runtime, lgr *logrus.Entry, path string, body []byte, mime string) httpHandler

Types

type BLLookupError

type BLLookupError struct {
	Code int
	// contains filtered or unexported fields
}

func (*BLLookupError) Error

func (e *BLLookupError) Error() string

type GeoLookupError

type GeoLookupError struct {
	Code int
	// contains filtered or unexported fields
}

func (*GeoLookupError) Error

func (e *GeoLookupError) Error() string

type StatsLookupError

type StatsLookupError struct {
	Code int
	// contains filtered or unexported fields
}

func (*StatsLookupError) Error

func (e *StatsLookupError) Error() string

Jump to

Keyboard shortcuts

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