status

package
v0.0.0-...-31c8788 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FailureMode = "status"

FailureMode name

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	Code int `json:"code,omitempty"`
}

Status simply returns a http status code

func NewDriver

func NewDriver() *Status

NewDriver returns an instance of Status with some configured defaults

func (Status) Handle

func (h Status) Handle(w http.ResponseWriter, r *http.Request) error

Handle the failure

func (Status) Validate

func (h Status) Validate() error

Validate verifies that this module is functional with the given configuration

Jump to

Keyboard shortcuts

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