response

package
v0.0.0-...-a91bc6d Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 7 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 {
	RequestID string
	// contains filtered or unexported fields
}

func New

func New(ctx iris.Context) *Response

func (*Response) Code

func (this *Response) Code(code int) *Response

func (*Response) Details

func (this *Response) Details(details interface{}) *Response

func (*Response) Error

func (this *Response) Error(err error) *Response

func (*Response) Message

func (this *Response) Message(message ...string) *Response

func (*Response) ParamError

func (this *Response) ParamError(message ...string) *Response

func (*Response) Result

func (this *Response) Result(result interface{}) *Response

func (*Response) Send

func (this *Response) Send()

func (*Response) ServerError

func (this *Response) ServerError(message ...string) *Response

func (*Response) StatusCode

func (this *Response) StatusCode(statusCode int) *Response

Jump to

Keyboard shortcuts

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