Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LifecyclePhase ¶
type LifecyclePhase struct {
Phase Phase `json:"phase,omitempty" temporaljson:"phase,omitempty"`
Description string `json:"description,omitempty" temporaljson:"description,omitempty"`
UpdatedAt int64 `json:"updated_at,omitempty" temporaljson:"updated_at,omitempty"`
UpdatedBy string `json:"updated_by,omitempty" temporaljson:"updated_by,omitempty"`
Metadata map[string]any `json:"metadata,omitempty" temporaljson:"metadata,omitempty"`
History []LifecyclePhase `json:"history,omitempty" temporaljson:"history,omitempty"`
}
func New ¶
func New(phase Phase, description string) LifecyclePhase
func Transition ¶
func Transition(current LifecyclePhase, next Phase, description string) LifecyclePhase
func (LifecyclePhase) GormDataType ¶
func (lp LifecyclePhase) GormDataType() string
func (*LifecyclePhase) Scan ¶
func (lp *LifecyclePhase) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.