Documentation
¶
Index ¶
- func ErrorHandler(c *fiber.Ctx, err error) error
- func HandleSendLog(c *fiber.Ctx) (err error)
- func NewCtx(c *fiber.Ctx) error
- func NewRelicHandle() fiber.Handler
- func NotFoundHandler(c *fiber.Ctx) error
- func Recover(c *fiber.Ctx) (err error)
- func SetDB(c *fiber.Ctx) error
- func ValidateAuth(c *fiber.Ctx) error
- type Auth
- type Logger
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSendLog ¶
func NotFoundHandler ¶
func ValidateAuth ¶
Types ¶
type Auth ¶
func (*Auth) ErrorHandler ¶
func (*Auth) GenerateSecureToken ¶
func (*Auth) IsNeedValidate ¶
func (*Auth) RefreshToken ¶
type Logger ¶
type Logger struct {
Slug db.NullString `json:"slug"`
Host db.NullString `json:"host"`
Email db.NullString `json:"email"`
Method db.NullString `json:"method"`
EndPoint db.NullString `json:"end_point"`
Header map[string]interface{} `json:"header"`
Param db.NullJSON `json:"param"`
BodyRequest db.NullJSON `json:"body_request"`
RequestedAt db.NullDateTime `json:"request_at"`
HttpStatus db.NullInt64 `json:"http_status"`
ErrorMsg db.NullText `json:"error_msg"`
ErrorMessage db.NullJSON `json:"error_message"`
Trace db.NullJSON `json:"trace"`
}
type ResponseWriter ¶
type ResponseWriter struct {
// contains filtered or unexported fields
}
func (*ResponseWriter) Header ¶
func (rw *ResponseWriter) Header() http.Header
Header implementation
func (*ResponseWriter) Write ¶
func (rw *ResponseWriter) Write(p []byte) (int, error)
Write implementation
func (*ResponseWriter) WriteHeader ¶
func (rw *ResponseWriter) WriteHeader(statusCode int)
WriteHeader implementation
Click to show internal directories.
Click to hide internal directories.