Documentation ¶
Index ¶
- func CheckDirExists(dirPath string)
- func GetEnv(key, fallback string) (value string)
- func GetRandomHostAddress(hostsArray []string, seed int64) (string, int)
- func PathIs(name []byte, r *http.Request) bool
- func SendHTTPRequest(reqhosts []string, seed int64, url string, payloadBytes []byte, ...) ([]byte, map[string][]string, int, error)
- func SendJSONResponse(w http.ResponseWriter, data interface{}, message string, errMessage string, ...)
- func SetCorsHeaders(w *http.ResponseWriter, r *http.Request, allowCredentials bool)
- func SplitDirAndFilename(path string) (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDirExists ¶
func CheckDirExists(dirPath string)
func GetRandomHostAddress ¶
func SendHTTPRequest ¶
func SendJSONResponse ¶
func SetCorsHeaders ¶
func SetCorsHeaders(w *http.ResponseWriter, r *http.Request, allowCredentials bool)
func SplitDirAndFilename ¶
SplitDirAndFilename :
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.