Documentation ¶
Index ¶
- Constants
- func Respond(w http.ResponseWriter, message string, v any, statusCode int)
- func RespondErr(w http.ResponseWriter, message string, v any)
- func RespondJson(w http.ResponseWriter, v any)
- func ValidatePassword(password string) bool
- func ValidateRxEmail(email string) bool
- func ValidateRxPhone(phone string) bool
- func ValidateRxUsername(username string) bool
- type Authorize
- type Server
Constants ¶
View Source
const ( AuthorizeCookie = "authorize" ContextUser ctxKey = "context_user" )
Variables ¶
This section is empty.
Functions ¶
func RespondErr ¶
func RespondErr(w http.ResponseWriter, message string, v any)
func RespondJson ¶
func RespondJson(w http.ResponseWriter, v any)
func ValidatePassword ¶
func ValidateRxEmail ¶
func ValidateRxPhone ¶
func ValidateRxUsername ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.