httpresponse

package
Version: v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeOk        = 0
	CodeUndefined = 10001
)

Variables

This section is empty.

Functions

func Create

func Create(ctx *gin.Context, data interface{})

RHttprespnse retrun none error code 201

func Delete

func Delete(ctx *gin.Context, data interface{})

RHttprespnse retrun none error code 204

func Error

func Error(ctx *gin.Context, err error)

func Ok

func Ok(ctx *gin.Context, data interface{})

RHttprespnse retrun none error code 200

func SSEventError

func SSEventError(ctx *gin.Context, namespace string, err error)

func SSEventOk

func SSEventOk(ctx *gin.Context, namespace string, data interface{})

func Update

func Update(ctx *gin.Context, data interface{})

RHttprespnse retrun none error code 202

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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