Documentation ¶
Index ¶
- func GetFreeUDPPort() (uint16, error)
- func IsNotFoundError(v error) error
- func ParsePaginationQuery(values url.Values) (pagination *query.PageRequest, err error)
- func RandomStringHex(length int64) string
- func WriteErrorToResponse(w http.ResponseWriter, status, code int, message string)
- func WriteResultToResponse(w http.ResponseWriter, status int, result interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFreeUDPPort ¶
func IsNotFoundError ¶
func ParsePaginationQuery ¶
func ParsePaginationQuery(values url.Values) (pagination *query.PageRequest, err error)
func RandomStringHex ¶
func WriteErrorToResponse ¶
func WriteErrorToResponse(w http.ResponseWriter, status, code int, message string)
func WriteResultToResponse ¶
func WriteResultToResponse(w http.ResponseWriter, status int, result interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.