Documentation
¶
Overview ¶
Package web defines common components for a web application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetErrorMsg ¶
func GetErrorMsg(ve validator.ValidationErrors) string
GetErrorMsg parses error message from request validator.
Types ¶
type Response ¶
type Response struct { AccessToken string `json:"access_token,omitempty"` AccessTokenExpiresAt *time.Time `json:"access_token_expires_at,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` RefreshTokenExpiresAt *time.Time `json:"refresh_token_expires_at,omitempty"` Data any `json:"data,omitempty"` Error string `json:"error,omitempty"` }
Response holds the common response type for all APIs.
Click to show internal directories.
Click to hide internal directories.