Versions in this module Expand all Collapse all v0 v0.0.2 Apr 5, 2021 Changes in this version + const FAILURE + const SUCCESS + func BadRequest(w http.ResponseWriter, message string, loggers chaoslogger.Loggers) + func InternalServerError(w http.ResponseWriter, message string, loggers chaoslogger.Loggers) + func OkResponse(w http.ResponseWriter, message string, loggers chaoslogger.Loggers) + func RecoverResponse(w http.ResponseWriter, messages []*RecoverMessage, loggers chaoslogger.Loggers) v0.0.1 Mar 11, 2021 Changes in this version + type Payload struct + Error string + Message string + Status int + func NewDefaultResponse() *Payload + func (p *Payload) BadRequest(message string, logger log.Logger) + func (p *Payload) InternalServerError(message string, logger log.Logger) + func (p *Payload) SetInWriter(w http.ResponseWriter, logger log.Logger) + type RecoverMessage struct + Error string + Message string + Status string + func FailureRecoverResponse(message string) *RecoverMessage + func SuccessRecoverResponse(message string) *RecoverMessage + type RecoverResponsePayload struct + RecoverMessage []*RecoverMessage + Status int + func NewDefaultRecoverResponse() *RecoverResponsePayload + func (recoverR *RecoverResponsePayload) BadRequest(message string, logger log.Logger) + func (recoverR *RecoverResponsePayload) GetSortedStatuses() []string + func (recoverR *RecoverResponsePayload) SetInWriter(w http.ResponseWriter, logger log.Logger)