Documentation ¶
Index ¶
- Constants
- type API
- func (api *API) Error(m string) *errors.Error
- func (api *API) Errorf(format string, a ...interface{}) *errors.Error
- func (api *API) Fatal(m string)
- func (api *API) Fatalf(format string, a ...interface{})
- func (api *API) GinError(c *gin.Context, m string)
- func (api *API) GinFormatter(param gin.LogFormatterParams) string
- func (api *API) Log(m, n, c string) *errors.Error
- func (api *API) Print(m string) string
- func (api *API) Send(m string, b map[string]interface{}, at []map[string]interface{}) *errors.Error
- func (api *API) UseGinFormatter(router *gin.Engine)
- func (api *API) Verify() *errors.Error
Constants ¶
View Source
const ( ErrMissingWebHook = "err_missing_webhook" ErrUnexpectedError = "err_unexpected_error" ErrCannotReachSlackServer = "err_cannot_reach_slack_server" ErrUnexpectedServerResponse = "err_unexpected_server_response" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) GinFormatter ¶
func (api *API) GinFormatter(param gin.LogFormatterParams) string
func (*API) UseGinFormatter ¶
Click to show internal directories.
Click to hide internal directories.