Documentation ¶
Index ¶
- type Context
- type JSONResponse
- type Meta
- type Responder
- func (r *Responder) Logger() log.Logger
- func (r *Responder) Request() *rest.Request
- func (r *Responder) RespondWithError(err *service.Error)
- func (r *Responder) RespondWithInternalServerFailure(message string, failure ...interface{})
- func (r *Responder) RespondWithStatusAndData(statusCode int, data interface{})
- func (r *Responder) RespondWithStatusAndErrors(statusCode int, errors []*service.Error)
- func (r *Responder) Response() rest.ResponseWriter
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONResponse ¶
type Responder ¶ added in v1.20.0
type Responder struct {
// contains filtered or unexported fields
}
func NewResponder ¶ added in v1.20.0
func (*Responder) RespondWithError ¶ added in v1.20.0
func (*Responder) RespondWithInternalServerFailure ¶ added in v1.20.0
func (*Responder) RespondWithStatusAndData ¶ added in v1.20.0
func (*Responder) RespondWithStatusAndErrors ¶ added in v1.20.0
func (*Responder) Response ¶ added in v1.20.0
func (r *Responder) Response() rest.ResponseWriter
Click to show internal directories.
Click to hide internal directories.