Documentation ¶
Index ¶
- Constants
- Variables
- type ApiString
- func (this *ApiString) Email() bool
- func (this *ApiString) Equal(in string) bool
- func (this *ApiString) Hash() string
- func (this *ApiString) Html() template.HTML
- func (this *ApiString) Int() int64
- func (this *ApiString) JsonString() string
- func (this *ApiString) Nullable() (out sql.NullString)
- func (this *ApiString) PassRequires() string
- func (this *ApiString) Password() bool
- func (this *ApiString) Phone() bool
- func (this *ApiString) SafeRegex() string
- func (this *ApiString) Set(str string)
- func (this *ApiString) Sprintf(msg string, params ...interface{})
- func (this *ApiString) String() string
- func (this *ApiString) Url() bool
- func (this *ApiString) Valid() bool
- type EnumString
- type ProductionLevel
- type QueTask
- type Que_t
- type ScheduleType
- type Schedule_t
- type UUID
- type UserMask
- type User_t
Constants ¶
View Source
const MaxQueSize = 999999 // max number of items in any of the queues
Variables ¶
View Source
var ( ErrType_userMissing = errors.New("User missing from context") ErrType_noIdentifiers = errors.New("Bearer token is missing identifiers") ErrType_invalidUUID = errors.New("Invalid UUID") ErrType_permission = errors.New("You don't have permission to do this") ErrType_tookLongTime = errors.New("request took a long time to complete") ErrType_nonFatal = errors.New("non fatal error occured") ErrType_returnToUser = errors.New("Error Occured") )
View Source
var MaxMask int64 = 2<<53 - 1 // max int we can hold in javascript
Functions ¶
This section is empty.
Types ¶
type ApiString ¶
type ApiString string
-----
func (*ApiString) JsonString ¶
func (*ApiString) Nullable ¶
func (this *ApiString) Nullable() (out sql.NullString)
func (*ApiString) PassRequires ¶
func (*ApiString) SafeRegex ¶
! \brief Preps a string for use in the database by removing "weird" characters
type EnumString ¶
type EnumString string
func (EnumString) Int ¶
func (this EnumString) Int() int64
func (*EnumString) Set ¶
func (this *EnumString) Set(in string)
func (EnumString) String ¶
func (this EnumString) String() string
type ProductionLevel ¶
type ProductionLevel int
const ( ProductionLevel_Dev ProductionLevel = iota ProductionLevel_Production ProductionLevel_Staging )
type ScheduleType ¶
type ScheduleType int64
----- SCHEDULES -----// these are from the schedules table in the database
const (
ScheduleType_none ScheduleType = iota
)
type Schedule_t ¶
type Schedule_t struct { ID UUID `json:",omitempty"` Type ScheduleType Interval ApiString Attr struct { Desc, Email string `json:",omitempty"` } }
Click to show internal directories.
Click to hide internal directories.