Documentation ¶
Index ¶
- func BuildURL(host, path string) string
- func Canonical(method, contentType, content, urlPath string, now time.Time) string
- func ContentMD5(content string) string
- func ExtractBody(response *http.Response) ([]byte, error)
- func HTTPDate(date time.Time) string
- func PostRequest(url string, headers map[string]string, body []byte) (*http.Response, error)
- func ValidateCurp(curp string) bool
- func ValidateEmail(email string) bool
- func ValidateFullData(fullData interface{}) error
- type PostRequestFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentMD5 ¶
ContentMD5 - Generate the MD5 of the Body string.
func ExtractBody ¶
ExtractBody - Encapsulation of the task which extracts body response data.
func PostRequest ¶
PostRequest - HTTP POST Request using Golang stdlib. url - String URL. headers - Headers to be included in the request. body - Request body.
func ValidateFullData ¶
func ValidateFullData(fullData interface{}) error
ValidateFullData - Validation of extra lead data.
Types ¶
Click to show internal directories.
Click to hide internal directories.