Versions in this module Expand all Collapse all v0 v0.1.10 Oct 5, 2021 v0.1.9 Oct 5, 2021 Changes in this version + func Backup(db *sql.DB, backupFile string) + func CleanupDirectory(path string) + func Copy(source, destination string) error + func DoesFileExists(name string) bool + func FindInSlice(slice []string, val string) (int, bool) + func GenerateAccessToken() (string, error) + func GenerateClientIDFromRequest(req *http.Request) string + func GeneratePhrase() string + func GenerateRandomDisplayColor() int + func GetAveragePerformance(key string) float64 + func GetCacheDurationSecondsForPath(filePath string) int + func GetIPAddressFromRequest(req *http.Request) string + func GetIndexFromFilePath(path string) string + func GetRelativePathFromAbsolutePath(path string) string + func IsUserAgentABot(userAgent string) bool + func IsUserAgentAPlayer(userAgent string) bool + func IsValidURL(urlToTest string) bool + func Move(source, destination string) error + func ReadRestURLParameter(r *http.Request, parameterName string) (string, error) + func RenderPageContentMarkdown(raw string) string + func RenderSimpleMarkdown(raw string) string + func RestEndpoint(pattern string, handler http.HandlerFunc) (string, http.HandlerFunc) + func Restore(backupFile string, databaseFile string) error + func StartPerformanceMonitor(key string) + func ValidatedFfmpegPath(ffmpegPath string) string + func VerifyFFMpegPath(path string) error + type NullTime struct + Time time.Time + Valid bool + func (nt *NullTime) Scan(value interface{}) error + func (nt NullTime) MarshalJSON() ([]byte, error) + func (nt NullTime) UnmarshalJSON(data []byte) error + func (nt NullTime) Value() (driver.Value, error)