Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type MessageRequest ¶
type MessageRequest struct {
Text string `json:"message" validate:"required,min=3,max=160"`
}
func (*MessageRequest) Validate ¶
func (r *MessageRequest) Validate() *map[string]string
Validate request by annotations
Click to show internal directories.
Click to hide internal directories.