contract

package
v0.0.63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (
	UserTypeEmployer = userType("employer")
	UserTypeEmployee = userType("employee")
	UserTypeClient   = userType("client")
	UserTypeExternal = userType("external")
)

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 CoreOption

type CoreOption[T any] func(*T)

type MetaOption

type MetaOption[T any] func(*T)

type RecurrenceEndType added in v0.0.23

type RecurrenceEndType = string

type RecurrenceType added in v0.0.23

type RecurrenceType = string

type Status added in v0.0.23

type Status = string

type UserType added in v0.0.50

type UserType string

func (*UserType) Validate added in v0.0.50

func (u *UserType) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL