Documentation
¶
Index ¶
Constants ¶
View Source
const ( IDKey = contract.IDKey UpdatedAtKey = "updated_at" CreatedAtKey = "created_at" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Comp ¶
type Comp struct{}
func ApplyComp ¶
func ApplyComp(c *Comp, modifiers ...CompOption) Comp
type CompOption ¶
type CompOption = contract.CompOption[Comp]
type Core ¶
type Core struct {
ID *contract.ID `json:"id"`
UpdatedAt *time.Time `json:"updated_at" validate:"nnpt,nz"`
CreatedAt *time.Time `json:"created_at" validate:"nnpt,nz"`
}
func ApplyCore ¶
func ApplyCore(c *Core, modifiers ...CoreOption) Core
func (*Core) GetCreatedAt ¶
func (*Core) GetUpdatedAt ¶
func (*Core) SetCreatedAt ¶
func (*Core) SetUpdatedAt ¶
type CoreOption ¶
type CoreOption = contracti.CoreOption[Core]
func WithCreatedAt ¶
func WithCreatedAt(x time.Time) CoreOption
func WithID ¶
func WithID(x contract.ID) CoreOption
func WithUpdatedAt ¶
func WithUpdatedAt(x time.Time) CoreOption
type Meta ¶
type Meta struct{}
func ApplyMeta ¶
func ApplyMeta(m *Meta, modifiers ...MetaOption) Meta
type MetaOption ¶
type MetaOption = contract.MetaOption[Meta]
Click to show internal directories.
Click to hide internal directories.