handlers

package
Version: v0.0.0-...-506b656 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTaskHandler

func CreateTaskHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

func EmptyHandler

func EmptyHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

func InternalServerErrorHandler

func InternalServerErrorHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

func ListTasksHandler

func ListTasksHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

func NotAllowedHandler

func NotAllowedHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

func NotFoundHandler

func NotFoundHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

func PingHandler

func PingHandler(in *instance.Instance, w http.ResponseWriter, r *http.Request)

Types

type TaskRequest

type TaskRequest struct {
	Type     string   `json:"type"`
	Target   string   `json:"target"`
	Scanners []string `json:"scanners"`
}

Jump to

Keyboard shortcuts

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