httpod

package
v0.0.0-...-9f176cc Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INVALID_BODY = "Body is not JSON valid format"
	DECODE_FAIL  = "Error decoding response"
)

Variables

This section is empty.

Functions

func NewError

func NewError(error *PodError) ([]byte, error)

func StatusBadRequest

func StatusBadRequest(w http.ResponseWriter, response []byte)

StatusBadRequest http send

func StatusInternalServerError

func StatusInternalServerError(w http.ResponseWriter, response []byte)

StatusInternalServerError http send

func StatusOK

func StatusOK(w http.ResponseWriter, response []byte)

StatusOK http send

Types

type PodError

type PodError struct {
	Error string `json:"message"`
}

Jump to

Keyboard shortcuts

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