Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternalServer = &ErrorResponse{StatusCode: http.StatusInternalServerError, ErrorText: "internal server error"} ErrDecodeJsonFailed = &ErrorResponse{StatusCode: http.StatusBadRequest, ErrorText: "failed to decode JSON"} )
View Source
var DefaultSet = wire.NewSet( ProvideRoutes, New, )
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Err error `json:"-"` StatusCode int `json:"-"` ErrorText string `json:"error"` }
func ErrExecute ¶
func ErrExecute(err error) *ErrorResponse
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
func (*ErrorResponse) Render ¶
func (e *ErrorResponse) Render(w http.ResponseWriter, r *http.Request) error
func (*ErrorResponse) WithError ¶
func (e *ErrorResponse) WithError(err error) *ErrorResponse
type GetMeResponse ¶
type GetMeResponse struct {
Id string `json:"id"`
}
type PostMatch ¶
type PostMatch struct {
// contains filtered or unexported fields
}
func NewPostMatch ¶
func NewPostMatch(createMatch *usecase.CreateMatchCommand) *PostMatch
type PostMatchInput ¶
type PostMatchInput struct {
Team string `json:"team"`
}
type PostMatchOutput ¶
type PostMatchOutput struct {
MatchId string `json:"match_id"`
}
Click to show internal directories.
Click to hide internal directories.