Documentation
¶
Overview ¶
Do not modify this file, it's auto-generated
Index ¶
- Constants
- func CheckEventInvitationToken(tokenStr string, eventIdHex *string) (*string, error)
- type AllDayTaskEvent
- type AllDayTaskEventModel
- type BaseEvent
- func (event BaseEvent) BaseModel() BaseEventModel
- func (event BaseEvent) CalType() cal_types.CalType
- func (event BaseEvent) Description() string
- func (event BaseEvent) Icon() string
- func (event BaseEvent) Id() string
- func (event BaseEvent) Location() *time.Location
- func (event BaseEvent) NotifyBefore() int
- func (event BaseEvent) String() string
- func (event BaseEvent) Summary() string
- type BaseEventModel
- type CustomEvent
- func (event CustomEvent) CheckRuleTypes() error
- func (event *CustomEvent) GetModifiedRuleTypes(oldEvent *CustomEvent) rlib.EventRuleTypeList
- func (event CustomEvent) GetRule(typeName string) (rlib.EventRule, bool)
- func (event CustomEvent) IterRules() <-chan rlib.EventRule
- func (event CustomEvent) RuleTypes() rlib.EventRuleTypeList
- func (CustomEvent) Type() string
- type CustomEventModel
- type DailyNoteEvent
- type DailyNoteEventModel
- type EventAttendingModel
- type EventGroupModel
- type EventInvitationModel
- type EventMetaChangeLogModel
- type EventMetaModel
- func (model *EventMetaModel) AttendingStatusCount(db storage.Database, attending string) (int, error)
- func (model *EventMetaModel) CanRead(email string) bool
- func (model *EventMetaModel) CanReadFull(email string) bool
- func (model EventMetaModel) Collection() string
- func (model *EventMetaModel) GetAttending(db storage.Database, email string) string
- func (model *EventMetaModel) GetAttendingEmails(db storage.Database) []string
- func (model *EventMetaModel) GetEmailsByAttendingStatus(db storage.Database, attending string) []string
- func (model *EventMetaModel) GetMaybeAttendingEmails(db storage.Database) []string
- func (model *EventMetaModel) GetNotAttendingEmails(db storage.Database) []string
- func (model EventMetaModel) GroupIdHex() string
- func (model *EventMetaModel) Invite(db storage.Database, email string, inviteEmails []string, remoteIp string, ...) error
- func (model *EventMetaModel) Join(db storage.Database, email string) error
- func (model EventMetaModel) JsonM() scal.M
- func (model *EventMetaModel) Leave(db storage.Database, email string) error
- func (model *EventMetaModel) PublicCanJoin() bool
- func (model *EventMetaModel) SetAttending(db storage.Database, email string, attending string) error
- func (model EventMetaModel) UniqueM() scal.M
- type EventRevisionModel
- type EventRuleMap
- type EventRuleModelList
- type InviteEmailTemplateParams
- type LargeScaleEvent
- func (event LargeScaleEvent) DurationEnable() bool
- func (event LargeScaleEvent) End() int64
- func (event LargeScaleEvent) EndYear() int64
- func (event LargeScaleEvent) Model() LargeScaleEventModel
- func (event LargeScaleEvent) Scale() int64
- func (event LargeScaleEvent) Start() int64
- func (event LargeScaleEvent) StartYear() int64
- func (LargeScaleEvent) Type() string
- type LargeScaleEventModel
- type LifetimeEvent
- type LifetimeEventModel
- type ListEventsRow
- type ListGroupsRow
- type MonthlyEvent
- func (event MonthlyEvent) Day() uint8
- func (event MonthlyEvent) DayEndHMS() lib.HMS
- func (event MonthlyEvent) DayEndSeconds() uint32
- func (event MonthlyEvent) DayStartHMS() lib.HMS
- func (event MonthlyEvent) DayStartSeconds() uint32
- func (event MonthlyEvent) EndJd() int
- func (event MonthlyEvent) Model() MonthlyEventModel
- func (event MonthlyEvent) StartJd() int
- func (MonthlyEvent) Type() string
- type MonthlyEventModel
- type MovedEventsRow
- type TaskEvent
- type TaskEventModel
- type UniversityClassEvent
- type UniversityClassEventModel
- type UniversityExamEvent
- func (event UniversityExamEvent) DayEndHMS() lib.HMS
- func (event UniversityExamEvent) DayEndSeconds() uint32
- func (event UniversityExamEvent) DayStartHMS() lib.HMS
- func (event UniversityExamEvent) DayStartSeconds() uint32
- func (event UniversityExamEvent) Model() UniversityExamEventModel
- func (UniversityExamEvent) Type() string
- type UniversityExamEventModel
- type WeeklyEvent
- func (event WeeklyEvent) CycleWeeks() uint
- func (event WeeklyEvent) DayEndHMS() lib.HMS
- func (event WeeklyEvent) DayEndSeconds() uint32
- func (event WeeklyEvent) DayStartHMS() lib.HMS
- func (event WeeklyEvent) DayStartSeconds() uint32
- func (event WeeklyEvent) EndJd() int
- func (event WeeklyEvent) Model() WeeklyEventModel
- func (event WeeklyEvent) StartJd() int
- func (WeeklyEvent) Type() string
- type WeeklyEventModel
- type YearlyEvent
- type YearlyEventModel
Constants ¶
View Source
const ( YES = "yes" NO = "no" MAYBE = "maybe" UNKNOWN = "unknown" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllDayTaskEvent ¶
type AllDayTaskEvent struct { BaseEvent // contains filtered or unexported fields }
func (AllDayTaskEvent) DurationEnable ¶
func (event AllDayTaskEvent) DurationEnable() bool
func (AllDayTaskEvent) EndJd ¶
func (event AllDayTaskEvent) EndJd() int
func (AllDayTaskEvent) Model ¶
func (event AllDayTaskEvent) Model() AllDayTaskEventModel
func (AllDayTaskEvent) StartJd ¶
func (event AllDayTaskEvent) StartJd() int
func (AllDayTaskEvent) Type ¶
func (AllDayTaskEvent) Type() string
type AllDayTaskEventModel ¶
type AllDayTaskEventModel struct { BaseEventModel `bson:",inline" json:",inline"` StartJd int `bson:"startJd" json:"startJd"` EndJd int `bson:"endJd" json:"endJd"` DurationEnable bool `bson:"durationEnable" json:"durationEnable"` }
func LoadAllDayTaskEventModel ¶
func LoadAllDayTaskEventModel(db storage.Database, sha1 string) ( *AllDayTaskEventModel, error, )
func (AllDayTaskEventModel) GetEvent ¶
func (model AllDayTaskEventModel) GetEvent() (AllDayTaskEvent, error)
func (AllDayTaskEventModel) Type ¶
func (AllDayTaskEventModel) Type() string
type BaseEvent ¶
type BaseEvent struct {
// contains filtered or unexported fields
}
func (BaseEvent) BaseModel ¶
func (event BaseEvent) BaseModel() BaseEventModel
func (BaseEvent) Description ¶
func (BaseEvent) NotifyBefore ¶
type BaseEventModel ¶
type BaseEventModel struct { DummyType string `bson:"-" json:"eventType"` Id string `bson:"-" json:"eventId,omitempty"` Sha1 string `bson:"sha1" json:"sha1,omitempty"` TimeZone string `bson:"timeZone,omitempty" json:"timeZone"` TimeZoneEnable bool `bson:"timeZoneEnable" json:"timeZoneEnable"` CalType string `bson:"calType" json:"calType"` Summary string `bson:"summary" json:"summary"` Description string `bson:"description,omitempty" json:"description"` Icon string `bson:"icon,omitempty" json:"icon"` SummaryEncrypted bool `bson:"summaryEncrypted,omitempty" json:"summaryEncrypted"` DescriptionEncrypted bool `bson:"descriptionEncrypted,omitempty" json:"descriptionEncrypted"` GroupId string `bson:"-" json:"groupId"` // FIXME Meta scal.M `bson:"-" json:"meta"` }
func LoadBaseEventModel ¶
func LoadBaseEventModel(db storage.Database, sha1 string) ( *BaseEventModel, error, )
func (BaseEventModel) Collection ¶
func (BaseEventModel) Collection() string
func (BaseEventModel) GetBaseEvent ¶
func (model BaseEventModel) GetBaseEvent() (BaseEvent, error)
func (BaseEventModel) UniqueM ¶
func (model BaseEventModel) UniqueM() scal.M
type CustomEvent ¶
type CustomEvent struct { BaseEvent // contains filtered or unexported fields }
func (CustomEvent) CheckRuleTypes ¶
func (event CustomEvent) CheckRuleTypes() error
func (*CustomEvent) GetModifiedRuleTypes ¶
func (event *CustomEvent) GetModifiedRuleTypes(oldEvent *CustomEvent) rlib.EventRuleTypeList
func (CustomEvent) GetRule ¶
func (event CustomEvent) GetRule(typeName string) (rlib.EventRule, bool)
func (event CustomEvent) RuleMap() EventRuleMap { return event.ruleMap }
func (CustomEvent) IterRules ¶
func (event CustomEvent) IterRules() <-chan rlib.EventRule
func (CustomEvent) RuleTypes ¶
func (event CustomEvent) RuleTypes() rlib.EventRuleTypeList
func (CustomEvent) Type ¶
func (CustomEvent) Type() string
type CustomEventModel ¶
type CustomEventModel struct { BaseEventModel `bson:",inline" json:",inline"` Rules EventRuleModelList `bson:"rules" json:"rules"` }
func LoadCustomEventModel ¶
func LoadCustomEventModel(db storage.Database, sha1 string) ( *CustomEventModel, error, )
func (CustomEventModel) GetEvent ¶
func (eventModel CustomEventModel) GetEvent() (CustomEvent, error)
func (CustomEventModel) Type ¶
func (CustomEventModel) Type() string
type DailyNoteEvent ¶
type DailyNoteEvent struct { BaseEvent // contains filtered or unexported fields }
func (DailyNoteEvent) Jd ¶
func (event DailyNoteEvent) Jd() int
func (DailyNoteEvent) Model ¶
func (event DailyNoteEvent) Model() DailyNoteEventModel
func (DailyNoteEvent) Type ¶
func (DailyNoteEvent) Type() string
type DailyNoteEventModel ¶
type DailyNoteEventModel struct { BaseEventModel `bson:",inline" json:",inline"` Jd int `bson:"jd" json:"jd"` }
func LoadDailyNoteEventModel ¶
func LoadDailyNoteEventModel(db storage.Database, sha1 string) ( *DailyNoteEventModel, error, )
func (DailyNoteEventModel) GetEvent ¶
func (model DailyNoteEventModel) GetEvent() (DailyNoteEvent, error)
func (DailyNoteEventModel) Type ¶
func (DailyNoteEventModel) Type() string
type EventAttendingModel ¶
type EventAttendingModel struct { // Id *string `bson:"_id,objectid"` // omitempty?? EventId string `bson:"eventId,objectid"` Email string `bson:"email"` Attending string `bson:"attending"` // YES, NO, MAYBE, UNKNOWN ModifiedTime time.Time `bson:"modifiedTime"` }
func LoadEventAttendingModel ¶
func (EventAttendingModel) Collection ¶
func (EventAttendingModel) Collection() string
func (*EventAttendingModel) Save ¶
func (model *EventAttendingModel) Save(db storage.Database) error
func (EventAttendingModel) UniqueM ¶
func (model EventAttendingModel) UniqueM() scal.M
type EventGroupModel ¶
type EventGroupModel struct { Id string `bson:"_id,objectid" json:"groupId"` Title string `bson:"title" json:"title"` OwnerEmail string `bson:"ownerEmail" json:"ownerEmail"` AddAccessEmails []string `bson:"addAccessEmails,omitempty" json:"addAccessEmails,omitempty"` ReadAccessEmails []string `bson:"readAccessEmails,omitempty" json:"readAccessEmails,omitempty"` }
func LoadGroupModelById ¶
func LoadGroupModelByIdHex ¶
func (EventGroupModel) CanRead ¶
func (model EventGroupModel) CanRead(email string) bool
func (EventGroupModel) Collection ¶
func (EventGroupModel) Collection() string
func (EventGroupModel) EmailCanAdd ¶
func (model EventGroupModel) EmailCanAdd(email string) bool
func (EventGroupModel) UniqueM ¶
func (model EventGroupModel) UniqueM() scal.M
type EventInvitationModel ¶
type EventInvitationModel struct { Time time.Time `bson:"time"` SenderEmail string `bson:"senderEmail"` InvitedEmail string `bson:"invitedEmail"` EventId string `bson:"eventId,objectid"` }
func (EventInvitationModel) Collection ¶
func (model EventInvitationModel) Collection() string
type EventMetaChangeLogModel ¶
type EventMetaChangeLogModel struct { Time time.Time `bson:"time"` Email string `bson:"email"` EventId string `bson:"eventId,objectid"` RemoteIp string `bson:"remoteIp"` TokenIssuedAt time.Time `bson:"tokenIssuedAt"` FuncName string `bson:"funcName"` GroupId *[2]*string `bson:"groupId,omitempty"` OwnerEmail *[2]*string `bson:"ownerEmail,omitempty"` IsPublic *[2]bool `bson:"isPublic,omitempty"` AccessEmails *[2][]string `bson:"accessEmails,omitempty"` PublicJoinOpen *[2]bool `bson:"publicJoinOpen,omitempty"` MaxAttendees *[2]int `bson:"maxAttendees,omitempty"` }
func (EventMetaChangeLogModel) Collection ¶
func (model EventMetaChangeLogModel) Collection() string
type EventMetaModel ¶
type EventMetaModel struct { EventId string `bson:"_id,objectid"` EventType string `bson:"eventType"` CreationTime time.Time `bson:"creationTime"` FieldsMtime map[string]time.Time `bson:"fieldsMtime"` OwnerEmail string `bson:"ownerEmail"` IsPublic bool `bson:"isPublic"` AccessEmails []string `bson:"accessEmails"` GroupId *string `bson:"groupId,objectid"` GroupModel *EventGroupModel `bson:"-"` // PublicJoinPolicy string `bson:"publicJoinPolicy"` // not indexed PublicJoinOpen bool `bson:"publicJoinOpen"` MaxAttendees int `bson:"maxAttendees"` }
func LoadEventMetaModel ¶
func (*EventMetaModel) AttendingStatusCount ¶
func (*EventMetaModel) CanRead ¶
func (model *EventMetaModel) CanRead(email string) bool
func (*EventMetaModel) CanReadFull ¶
func (model *EventMetaModel) CanReadFull(email string) bool
func (EventMetaModel) Collection ¶
func (model EventMetaModel) Collection() string
func (*EventMetaModel) GetAttending ¶
func (model *EventMetaModel) GetAttending( db storage.Database, email string, ) string
func (*EventMetaModel) GetAttendingEmails ¶
func (model *EventMetaModel) GetAttendingEmails(db storage.Database) []string
func (*EventMetaModel) GetEmailsByAttendingStatus ¶
func (model *EventMetaModel) GetEmailsByAttendingStatus( db storage.Database, attending string, ) []string
func (*EventMetaModel) GetMaybeAttendingEmails ¶
func (model *EventMetaModel) GetMaybeAttendingEmails(db storage.Database) []string
func (*EventMetaModel) GetNotAttendingEmails ¶
func (model *EventMetaModel) GetNotAttendingEmails(db storage.Database) []string
func (EventMetaModel) GroupIdHex ¶
func (model EventMetaModel) GroupIdHex() string
func (*EventMetaModel) Join ¶
func (model *EventMetaModel) Join(db storage.Database, email string) error
func (EventMetaModel) JsonM ¶
func (model EventMetaModel) JsonM() scal.M
func (*EventMetaModel) Leave ¶
func (model *EventMetaModel) Leave(db storage.Database, email string) error
func (*EventMetaModel) PublicCanJoin ¶
func (model *EventMetaModel) PublicCanJoin() bool
func (*EventMetaModel) SetAttending ¶
func (EventMetaModel) UniqueM ¶
func (model EventMetaModel) UniqueM() scal.M
type EventRevisionModel ¶
type EventRevisionModel struct { EventId string `bson:"eventId,objectid" json:"eventId"` EventType string `bson:"eventType" json:"eventType"` Sha1 string `bson:"sha1" json:"sha1"` Time time.Time `bson:"time" json:"time"` }
func LoadLastRevisionModel ¶
func LoadLastRevisionModel(db storage.Database, eventIdHex *string) ( *EventRevisionModel, error, )
func (EventRevisionModel) Collection ¶
func (model EventRevisionModel) Collection() string
type EventRuleMap ¶
type EventRuleModelList ¶
type EventRuleModelList []rlib.EventRuleModel
func DecodeMapEventRuleModelList ¶
func DecodeMapEventRuleModelList(rawMapList any) (EventRuleModelList, error)
type LargeScaleEvent ¶
type LargeScaleEvent struct { BaseEvent // contains filtered or unexported fields }
func (LargeScaleEvent) DurationEnable ¶
func (event LargeScaleEvent) DurationEnable() bool
func (LargeScaleEvent) End ¶
func (event LargeScaleEvent) End() int64
func (LargeScaleEvent) EndYear ¶
func (event LargeScaleEvent) EndYear() int64
func (LargeScaleEvent) Model ¶
func (event LargeScaleEvent) Model() LargeScaleEventModel
func (LargeScaleEvent) Scale ¶
func (event LargeScaleEvent) Scale() int64
func (LargeScaleEvent) Start ¶
func (event LargeScaleEvent) Start() int64
func (LargeScaleEvent) StartYear ¶
func (event LargeScaleEvent) StartYear() int64
func (LargeScaleEvent) Type ¶
func (LargeScaleEvent) Type() string
type LargeScaleEventModel ¶
type LargeScaleEventModel struct { BaseEventModel `bson:",inline" json:",inline"` Scale int64 `bson:"scale" json:"scale"` Start int64 `bson:"start" json:"start"` End int64 `bson:"end" json:"end"` DurationEnable bool `bson:"durationEnable" json:"durationEnable"` }
func LoadLargeScaleEventModel ¶
func LoadLargeScaleEventModel(db storage.Database, sha1 string) ( *LargeScaleEventModel, error, )
func (LargeScaleEventModel) GetEvent ¶
func (model LargeScaleEventModel) GetEvent() (LargeScaleEvent, error)
func (LargeScaleEventModel) Type ¶
func (LargeScaleEventModel) Type() string
type LifetimeEvent ¶
type LifetimeEvent struct { BaseEvent // contains filtered or unexported fields }
func (LifetimeEvent) EndJd ¶
func (event LifetimeEvent) EndJd() int
func (LifetimeEvent) Model ¶
func (event LifetimeEvent) Model() LifetimeEventModel
func (LifetimeEvent) StartJd ¶
func (event LifetimeEvent) StartJd() int
func (LifetimeEvent) Type ¶
func (event LifetimeEvent) Type() string
type LifetimeEventModel ¶
type LifetimeEventModel struct { BaseEventModel `bson:",inline" json:",inline"` StartJd int `bson:"startJd" json:"startJd"` EndJd int `bson:"endJd" json:"endJd"` }
func LoadLifetimeEventModel ¶
func LoadLifetimeEventModel(db storage.Database, sha1 string) ( *LifetimeEventModel, error, )
func (LifetimeEventModel) GetEvent ¶
func (model LifetimeEventModel) GetEvent() (LifetimeEvent, error)
func (LifetimeEventModel) Type ¶
func (LifetimeEventModel) Type() string
type ListEventsRow ¶
type ListEventsRow struct { EventId string `bson:"_id,objectid" json:"eventId"` EventType *string `bson:"eventType" json:"eventType,omitempty"` GroupId *string `bson:"groupId,objectid" json:"groupId,omitempty"` OwnerEmail *string `bson:"ownerEmail" json:"ownerEmail,omitempty"` }
TODO: measure memory usage of large slice of this struct where 1, 2 or 3 of the fields are always empty does it help that I use pointers?
type ListGroupsRow ¶
type MonthlyEvent ¶
type MonthlyEvent struct { BaseEvent // contains filtered or unexported fields }
func (MonthlyEvent) Day ¶
func (event MonthlyEvent) Day() uint8
func (MonthlyEvent) DayEndHMS ¶
func (event MonthlyEvent) DayEndHMS() lib.HMS
func (MonthlyEvent) DayEndSeconds ¶
func (event MonthlyEvent) DayEndSeconds() uint32
func (MonthlyEvent) DayStartHMS ¶
func (event MonthlyEvent) DayStartHMS() lib.HMS
func (MonthlyEvent) DayStartSeconds ¶
func (event MonthlyEvent) DayStartSeconds() uint32
func (MonthlyEvent) EndJd ¶
func (event MonthlyEvent) EndJd() int
func (MonthlyEvent) Model ¶
func (event MonthlyEvent) Model() MonthlyEventModel
func (MonthlyEvent) StartJd ¶
func (event MonthlyEvent) StartJd() int
func (MonthlyEvent) Type ¶
func (MonthlyEvent) Type() string
type MonthlyEventModel ¶
type MonthlyEventModel struct { BaseEventModel `bson:",inline" json:",inline"` StartJd int `bson:"startJd" json:"startJd"` EndJd int `bson:"endJd" json:"endJd"` Day uint8 `bson:"day" json:"day"` DayStartSeconds uint32 `bson:"dayStartSeconds" json:"dayStartSeconds"` DayEndSeconds uint32 `bson:"dayEndSeconds" json:"dayEndSeconds"` }
func LoadMonthlyEventModel ¶
func LoadMonthlyEventModel(db storage.Database, sha1 string) ( *MonthlyEventModel, error, )
func (MonthlyEventModel) GetEvent ¶
func (model MonthlyEventModel) GetEvent() (MonthlyEvent, error)
func (MonthlyEventModel) Type ¶
func (MonthlyEventModel) Type() string
type MovedEventsRow ¶
type TaskEvent ¶
type TaskEvent struct { BaseEvent // contains filtered or unexported fields }
func (TaskEvent) DurationUnit ¶
func (TaskEvent) Model ¶
func (event TaskEvent) Model() TaskEventModel
type TaskEventModel ¶
type TaskEventModel struct { BaseEventModel `bson:",inline" json:",inline"` StartTime *time.Time `bson:"startTime" json:"startTime"` EndTime *time.Time `bson:"endTime" json:"endTime"` DurationUnit uint `bson:"durationUnit" json:"durationUnit"` }
func LoadTaskEventModel ¶
func LoadTaskEventModel(db storage.Database, sha1 string) ( *TaskEventModel, error, )
func (TaskEventModel) GetEvent ¶
func (model TaskEventModel) GetEvent() (TaskEvent, error)
func (TaskEventModel) Type ¶
func (TaskEventModel) Type() string
type UniversityClassEvent ¶
type UniversityClassEvent struct { BaseEvent // contains filtered or unexported fields }
func (UniversityClassEvent) Model ¶
func (event UniversityClassEvent) Model() UniversityClassEventModel
func (UniversityClassEvent) Type ¶
func (UniversityClassEvent) Type() string
func (UniversityClassEvent) WeekDayList ¶
func (event UniversityClassEvent) WeekDayList() []int
func (UniversityClassEvent) WeekNumMode ¶
func (event UniversityClassEvent) WeekNumMode() string
type UniversityClassEventModel ¶
type UniversityClassEventModel struct { BaseEventModel `bson:",inline" json:",inline"` WeekNumMode string `bson:"weekNumMode" json:"weekNumMode"` WeekDayList []int `bson:"weekDayList" json:"weekDayList"` DayStartSeconds uint32 `bson:"dayStartSeconds" json:"dayStartSeconds"` DayEndSeconds uint32 `bson:"dayEndSeconds" json:"dayEndSeconds"` CourseId int `bson:"courseId" json:"courseId"` }
func LoadUniversityClassEventModel ¶
func LoadUniversityClassEventModel(db storage.Database, sha1 string) ( *UniversityClassEventModel, error, )
func (UniversityClassEventModel) GetEvent ¶
func (model UniversityClassEventModel) GetEvent() (UniversityClassEvent, error)
func (UniversityClassEventModel) Type ¶
func (UniversityClassEventModel) Type() string
type UniversityExamEvent ¶
type UniversityExamEvent struct { BaseEvent // contains filtered or unexported fields }
func (UniversityExamEvent) DayEndHMS ¶
func (event UniversityExamEvent) DayEndHMS() lib.HMS
func (UniversityExamEvent) DayEndSeconds ¶
func (event UniversityExamEvent) DayEndSeconds() uint32
func (UniversityExamEvent) DayStartHMS ¶
func (event UniversityExamEvent) DayStartHMS() lib.HMS
func (UniversityExamEvent) DayStartSeconds ¶
func (event UniversityExamEvent) DayStartSeconds() uint32
func (UniversityExamEvent) Model ¶
func (event UniversityExamEvent) Model() UniversityExamEventModel
func (UniversityExamEvent) Type ¶
func (UniversityExamEvent) Type() string
type UniversityExamEventModel ¶
type UniversityExamEventModel struct { BaseEventModel `bson:",inline" json:",inline"` Jd int `bson:"jd" json:"jd"` DayStartSeconds uint32 `bson:"dayStartSeconds" json:"dayStartSeconds"` DayEndSeconds uint32 `bson:"dayEndSeconds" json:"dayEndSeconds"` CourseId int `bson:"courseId" json:"courseId"` }
func LoadUniversityExamEventModel ¶
func LoadUniversityExamEventModel(db storage.Database, sha1 string) ( *UniversityExamEventModel, error, )
func (UniversityExamEventModel) GetEvent ¶
func (model UniversityExamEventModel) GetEvent() (UniversityExamEvent, error)
func (UniversityExamEventModel) Type ¶
func (UniversityExamEventModel) Type() string
type WeeklyEvent ¶
type WeeklyEvent struct { BaseEvent // contains filtered or unexported fields }
func (WeeklyEvent) CycleWeeks ¶
func (event WeeklyEvent) CycleWeeks() uint
func (WeeklyEvent) DayEndHMS ¶
func (event WeeklyEvent) DayEndHMS() lib.HMS
func (WeeklyEvent) DayEndSeconds ¶
func (event WeeklyEvent) DayEndSeconds() uint32
func (WeeklyEvent) DayStartHMS ¶
func (event WeeklyEvent) DayStartHMS() lib.HMS
func (WeeklyEvent) DayStartSeconds ¶
func (event WeeklyEvent) DayStartSeconds() uint32
func (WeeklyEvent) EndJd ¶
func (event WeeklyEvent) EndJd() int
func (WeeklyEvent) Model ¶
func (event WeeklyEvent) Model() WeeklyEventModel
func (WeeklyEvent) StartJd ¶
func (event WeeklyEvent) StartJd() int
func (WeeklyEvent) Type ¶
func (WeeklyEvent) Type() string
type WeeklyEventModel ¶
type WeeklyEventModel struct { BaseEventModel `bson:",inline" json:",inline"` StartJd int `bson:"startJd" json:"startJd"` EndJd int `bson:"endJd" json:"endJd"` CycleWeeks uint `bson:"cycleWeeks" json:"cycleWeeks"` DayStartSeconds uint32 `bson:"dayStartSeconds" json:"dayStartSeconds"` DayEndSeconds uint32 `bson:"dayEndSeconds" json:"dayEndSeconds"` }
func LoadWeeklyEventModel ¶
func LoadWeeklyEventModel(db storage.Database, sha1 string) ( *WeeklyEventModel, error, )
func (WeeklyEventModel) GetEvent ¶
func (model WeeklyEventModel) GetEvent() (WeeklyEvent, error)
func (WeeklyEventModel) Type ¶
func (WeeklyEventModel) Type() string
type YearlyEvent ¶
type YearlyEvent struct { BaseEvent // contains filtered or unexported fields }
func (YearlyEvent) Day ¶
func (event YearlyEvent) Day() uint8
func (YearlyEvent) Model ¶
func (event YearlyEvent) Model() YearlyEventModel
func (YearlyEvent) Month ¶
func (event YearlyEvent) Month() uint8
func (YearlyEvent) StartYear ¶
func (event YearlyEvent) StartYear() int
func (YearlyEvent) StartYearEnable ¶
func (event YearlyEvent) StartYearEnable() bool
func (YearlyEvent) Type ¶
func (YearlyEvent) Type() string
type YearlyEventModel ¶
type YearlyEventModel struct { BaseEventModel `bson:",inline" json:",inline"` Month uint8 `bson:"month" json:"month"` Day uint8 `bson:"day" json:"day"` StartYear int `bson:"startYear" json:"startYear"` StartYearEnable bool `bson:"startYearEnable" json:"startYearEnable"` }
func LoadYearlyEventModel ¶
func LoadYearlyEventModel(db storage.Database, sha1 string) ( *YearlyEventModel, error, )
func (YearlyEventModel) GetEvent ¶
func (model YearlyEventModel) GetEvent() (YearlyEvent, error)
func (YearlyEventModel) Type ¶
func (YearlyEventModel) Type() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.