Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type Error ¶
func NewBadRequestError ¶
func NewBattleNotFoundError ¶
func NewBattleNotFoundError() *Error
func NewGameNotFoundError ¶
func NewGameNotFoundError() *Error
func NewInternalServerError ¶
func NewInvalidBattleStateError ¶
func NewInvalidBattleStateError() *Error
func NewPartnerNotFoundError ¶
func NewPartnerNotFoundError() *Error
type RespBody ¶
type RespBody struct { StatusCode int `json:"-"` OK bool `json:"ok"` Data interface{} `json:"data,omitempty"` Err string `json:"err,omitempty"` Message string `json:"msg,omitempty"` Timestamp int64 `json:"ts"` }
func NewErrorResp ¶
func NewSuccessResp ¶
func NewSuccessResp(data interface{}) *RespBody
Click to show internal directories.
Click to hide internal directories.