response

package
v0.0.0-...-ceb351d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 3 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 interface {
	SetError(err error) Response
	SetResponse(interface{}) Response
	SetHeaders(map[string]string) Response
	SetStatusCode(int) Response
	AppendHeaders(map[string]string) Response
	StatusCode() int
	Body() interface{}
	ErrorBody() interface{}
	Error() error
	Headers() map[string]string
	GetResponseBody() interface{}
	String() string
}

Response interface for response struct

func NewResponse

func NewResponse(ctx *gin.Context) Response

NewResponse will create a new response instance

Jump to

Keyboard shortcuts

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