Documentation ¶
Index ¶
- func Call(method, baseUrl, path string, body io.Reader, headers map[string][]string) ([]byte, int, error)
- func CheckMapInt(m map[string]interface{}, key string) (int, error)
- func CheckMapInt64(m map[string]interface{}, key string) (int64, error)
- func CheckMapString(m map[string]interface{}, key string) (string, error)
- func CheckMapUInt16(m map[string]interface{}, key string) (uint16, error)
- func CheckMapUInt32(m map[string]interface{}, key string) (uint32, error)
- func ContentTypeCheck(r *http.Request) error
- func GenerateRandomID() string
- func HandleError(resp http.ResponseWriter, respData string, err error, respCode int)
- func MatchsContentType(contentType, expectedType string) bool
- func NotFoundHandle(resp http.ResponseWriter, req *http.Request)
- func Response(data []byte, statusCode int, resp http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentTypeCheck ¶
func HandleError ¶
func HandleError(resp http.ResponseWriter, respData string, err error, respCode int)
func MatchsContentType ¶
func NotFoundHandle ¶
func NotFoundHandle(resp http.ResponseWriter, req *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.