Documentation
¶
Overview ¶
util is not the best name for a package. Yeah, yeah, I know.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCookie ¶
CreateCookie can be used to create a random string of characters useful for being a cookie key.
func GetUserAgent ¶
func GetUserAgent() string
GetUserAgent returns a string that can be used as the User-Agent string in requests we make.
func GetVersionStr ¶
func GetVersionStr() string
GetVersionStr returns the version of the server as a string.
Types ¶
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
Schedule represents something that is scheduled. Typically this will be something along the lines of "every 6 hours" or "every 10 minutes".
func ParseSchedule ¶
type ScheduleType ¶
type ScheduleType int
const ( // Interval schedule type is one that starts with "every". "every 6 hours", "every 2nd day" etc. Interval ScheduleType = 0 )
Click to show internal directories.
Click to hide internal directories.