Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResponseToHTTP ¶
func DecodeResponseToHTTP(_ context.Context, w http.ResponseWriter, response interface{}) error
func NewFailedResponse ¶
func NewFailedResponse(err error) *defaultResponse
func NewSuccessResponse ¶
func NewSuccessResponse(successEvent interface{}) *defaultResponse
Types ¶
type ErrResponse ¶
type ErrResponse struct {
Message string `json:"message"`
}
type Response ¶
type Response interface { SuccessEvent() interface{} FailedEvent() *ErrResponse }
Click to show internal directories.
Click to hide internal directories.