Versions in this module Expand all Collapse all v1 v1.0.1 Dec 9, 2022 v1.0.0 Nov 23, 2022 Changes in this version + const JobPriorityHigh + const JobPriorityHighest + const JobPriorityLow + const JobPriorityLowest + const JobPriorityStandard + const JobStatusCanceled + const JobStatusErrored + const JobStatusFailed + const JobStatusPending + const JobStatusSucceeded + const JobStatusUnknown + const JobTypeAddChannel + const JobTypeAddMember + const JobTypeCheckPair + const JobTypeCreateMatches + const JobTypeCreatePair + const JobTypeCreateRound + const JobTypeDeleteChannel + const JobTypeDeleteMember + const JobTypeEndRound + const JobTypeGreetMember + const JobTypeNotifyPair + const JobTypeReportStats + const JobTypeSyncChannels + const JobTypeSyncMembers + const JobTypeUnknown + const JobTypeUpdateChannel + const JobTypeUpdateMatch + const JobTypeUpdateMember + var ErrInvalidInterval = errors.New("invalid chat roulette interval") + var ErrInvalidJobStatus = errors.New("invalid job status") + var ErrInvalidJobType = errors.New("invalid job type") + func ExtractJobFromActionID(actionID string) (jobTypeEnum, error) + func FormatSlackActionID(key jobTypeEnum, value interface{}) string + func JobRequiresSlackChannel(jobType jobTypeEnum) bool + type Channel struct + ChannelID string + CreatedAt time.Time + Hour int + Interval IntervalEnum + Inviter string + NextRound time.Time + UpdatedAt time.Time + Weekday time.Weekday + type GenericJob struct + ExecAt time.Time + JobType jobTypeEnum + Params T + Priority int + type IntervalEnum int64 + const Biweekly + const Monthly + const Triweekly + const Weekly + func ParseInterval(s string) (IntervalEnum, error) + func (i *IntervalEnum) Scan(value interface{}) error + func (i IntervalEnum) String() string + func (i IntervalEnum) Value() (driver.Value, error) + type Job struct + CreatedAt time.Time + Data datatypes.JSON + ExecAt time.Time + ID int32 + IsCompleted bool + JobID ksuid.KSUID + JobType jobTypeEnum + Priority int + Status jobStatusEnum + UpdatedAt time.Time + func NewJob(jobType jobTypeEnum, data datatypes.JSON) *Job + type Match struct + CreatedAt time.Time + HasMet bool + ID int32 + MpimID string + RoundID int32 + UpdatedAt time.Time + WasNotified bool + type Member struct + CalendlyLink sqlcrypter.EncryptedBytes + ChannelID string + City sqlcrypter.EncryptedBytes + Country sqlcrypter.EncryptedBytes + CreatedAt time.Time + ID int32 + IsActive *bool + ProfileLink sqlcrypter.EncryptedBytes + ProfileType sqlcrypter.EncryptedBytes + Timezone sqlcrypter.EncryptedBytes + UpdatedAt time.Time + UserID string + type Pairing struct + CreatedAt time.Time + ID int32 + MatchID int32 + MemberID int32 + type Round struct + ChannelID string + CreatedAt time.Time + HasEnded bool + ID int32 + UpdatedAt time.Time