Documentation
¶
Index ¶
- func InvalidEmail(email string) bool
- func InvalidFilename(name string) bool
- func InvalidNickname(nick string) bool
- func InvalidPassword(password string) bool
- type AdvancedResponse
- type SimpleResponse
- func (s *SimpleResponse) BadRequest(msg string)
- func (s *SimpleResponse) Conflict(msg string)
- func (s *SimpleResponse) InternalError()
- func (s *SimpleResponse) JSON()
- func (s *SimpleResponse) NotFound(msg string)
- func (s *SimpleResponse) Success(msg string)
- func (s *SimpleResponse) Unauthorized(msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvalidPassword ¶
Types ¶
type AdvancedResponse ¶
type AdvancedResponse struct {
Code int `json:"code"`
Count int `json:"count"`
Data any `json:"data"`
Writer http.ResponseWriter `json:"-"`
}
func (*AdvancedResponse) JSON ¶
func (s *AdvancedResponse) JSON()
type SimpleResponse ¶
type SimpleResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Writer http.ResponseWriter `json:"-"`
}
func (*SimpleResponse) BadRequest ¶
func (s *SimpleResponse) BadRequest(msg string)
Dev only message
func (*SimpleResponse) Conflict ¶
func (s *SimpleResponse) Conflict(msg string)
func (*SimpleResponse) JSON ¶
func (s *SimpleResponse) JSON()
func (*SimpleResponse) Success ¶
func (s *SimpleResponse) Success(msg string)
func (*SimpleResponse) Unauthorized ¶
func (s *SimpleResponse) Unauthorized(msg string)
Click to show internal directories.
Click to hide internal directories.