Documentation
¶
Index ¶
- Variables
- func ApplyCore[T any](c *T, modifiers ...CoreOption[T]) T
- func ApplyMeta[T any](m *T, modifiers ...MetaOption[T]) T
- type ComputedHours
- type CoreOption
- type MetaOption
- type PostType
- type PunchMode
- type PunchStatus
- type PunchType
- type RecurrenceEndType
- type RecurrenceType
- type Relation
- type Status
- type UserType
- type WorksiteType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PostTypeEmployment = postType("employment") PostTypeJob = postType("job") )
View Source
var ( Daily = recurrenceType("daily") Weekly = recurrenceType("weekly") Monthly = recurrenceType("monthly") Yearly = recurrenceType("yearly") Indefinite = recurrenceEndType("indefinite") AfterOccurrences = recurrenceEndType("after_occurrences") AfterDate = recurrenceEndType("after_date") )
View Source
var ( Pending = status("pending") Started = status("started") Terminated = status("terminated") )
View Source
var ( PunchTypeIn = punchType("in") PunchTypeOut = punchType("out") PunchTypeRideIn = punchType("ride_in") PunchTypeRideOut = punchType("ride_out") PunchStatusWorking = punchStatus("working") PunchStatusPending = punchStatus("pending") PunchStatusApproved = punchStatus("approved") PunchModeDefault = punchMode("default") PunchModeReplace = punchMode("replace") PunchModeDelete = punchMode("delete") PunchModeWeekSheet = punchMode("weeksheet") )
View Source
var ( UserTypeEmployer = userType("employer") UserTypeEmployee = userType("employee") UserTypeClient = userType("client") UserTypeExternal = userType("external") )
View Source
var ( Fixed = worksiteType("fixed") Floating = worksiteType("floating") )
Functions ¶
func ApplyCore ¶
func ApplyCore[T any](c *T, modifiers ...CoreOption[T]) T
func ApplyMeta ¶
func ApplyMeta[T any](m *T, modifiers ...MetaOption[T]) T
Types ¶
type ComputedHours ¶ added in v0.0.106
type CoreOption ¶
type CoreOption[T any] func(*T)
type MetaOption ¶
type MetaOption[T any] func(*T)
type PunchStatus ¶ added in v0.0.105
type PunchStatus string
func (PunchStatus) Validate ¶ added in v0.0.105
func (p PunchStatus) Validate() error
type RecurrenceEndType ¶ added in v0.0.23
type RecurrenceEndType = string
type RecurrenceType ¶ added in v0.0.23
type RecurrenceType = string
type WorksiteType ¶ added in v0.0.72
type WorksiteType = string
Click to show internal directories.
Click to hide internal directories.