Documentation
¶
Index ¶
Constants ¶
View Source
const ( CT_FORM = "application/x-www-form-urlencoded" CT_JSON = "application/json" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageRequest ¶
type MessageRequest struct { SenderName string `json:"sender-name" form:"sender-name"` SenderAddress string `json:"sender-address" form:"sender-address"` To []Person `json:"to" form:"to"` Cc []Person `json:"cc" form:"cc"` Bcc []Person `json:"bcc" form:"bcc"` Subject string `json:"subject" form:"subject"` Message string `json:"message" form:"message"` ContentType string `json:"_content-type" form:"_content-type"` Redirect string `json:"_redirect" form:"_redirect"` }
func (*MessageRequest) FieldMap ¶
func (mr *MessageRequest) FieldMap(req *http.Request) binding.FieldMap
func (MessageRequest) Validate ¶
func (mr MessageRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.