response

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Body   string `json:"body"`
}

Response is the default response format of the server after a succeded request

func NewResponse

func NewResponse(ctx iris.Context, code int, body string) *Response

NewResponse - create a new response instance

Jump to

Keyboard shortcuts

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