Documentation ¶
Index ¶
- func Create_dir_if_not_exists(path_to_dir string)
- func GetRandomStringBASE64() string
- func GetSHA1sum(bytes []byte) string
- func GetSHA1sumOfFile(filename string) (string, error)
- func GetUsernameFromRequest(r *http.Request) string
- func MatchRegex(s string, r *regexp.Regexp) ([]string, error)
- func WriteBodyNoRefresh(w http.ResponseWriter, bytes []byte)
- func WriteHTTPNoRefreshResponse(w http.ResponseWriter, errorcode int, msg string)
- func WriteHTTPResponse(w http.ResponseWriter, errorcode int, msg string)
- func WriteHeaderNoCache(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create_dir_if_not_exists ¶
func Create_dir_if_not_exists(path_to_dir string)
func GetRandomStringBASE64 ¶
func GetRandomStringBASE64() string
used for creating new session tokens
func GetSHA1sumOfFile ¶
used to check if file was modified while user was editing it
func GetUsernameFromRequest ¶
This function assumes the user is already logged in.
func WriteBodyNoRefresh ¶
func WriteBodyNoRefresh(w http.ResponseWriter, bytes []byte)
func WriteHTTPNoRefreshResponse ¶
func WriteHTTPNoRefreshResponse(w http.ResponseWriter, errorcode int, msg string)
func WriteHTTPResponse ¶
func WriteHTTPResponse(w http.ResponseWriter, errorcode int, msg string)
func WriteHeaderNoCache ¶
func WriteHeaderNoCache(w http.ResponseWriter)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.