Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDurataionUsers ¶
GetDurataionUsers - Return users retrived with pkg/model/duration_data
func InitCustomHandler ¶
func InitCustomHandler()
InitCustomHandler - initialize custom error code and message
Types ¶
type JwtCustomClaims ¶
type JwtCustomClaims struct { Name string `json:"name"` jwt.StandardClaims }
JwtCustomClaims - Define custom claims for token generation
type Response ¶
type Response struct { Status int `json:"status"` Success bool `json:"success"` Message string `json:"message"` Content interface{} `json:"content"` }
Response - Define a standard struct response
func (*Response) SetContent ¶
func (r *Response) SetContent(content interface{})
SetContent - Set content of response
func (*Response) SetMessage ¶
SetMessage - Set message of response
func (*Response) SetSuccess ¶
SetSuccess - Set the result of response
Click to show internal directories.
Click to hide internal directories.