response

package
v0.0.0-...-168a7d3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SimpleSuccessBody = "Success"

Variables

This section is empty.

Functions

func EmitErrorResponse

func EmitErrorResponse(re cmds.ResponseEmitter, err error) error

func EmitSuccessResponse

func EmitSuccessResponse(re cmds.ResponseEmitter, body interface{}) error

Types

type Response

type Response struct {
	Code int
	Body interface{}
}

Jump to

Keyboard shortcuts

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