Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseState ¶
type DatabaseState struct { CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` VersionID uint64 `gorm:"autoIncrement"` // unique Timestamp time.Time `gorm:"index"` Name string `gorm:"index"` EntityID string `gorm:"index"` Data pgtype.JSONB `gorm:"type:jsonb"` }
func (*DatabaseState) TableName ¶
func (d *DatabaseState) TableName() string
type State ¶
type State struct { VersionID uint64 `json:"version_id"` Timestamp time.Time `json:"timestamp"` Name string `json:"name"` EntityID ksuid.KSUID `json:"entity_id"` Data json.RawMessage `json:"data"` }
func (*State) ToDatabaseState ¶
func (s *State) ToDatabaseState() (*DatabaseState, error)
Click to show internal directories.
Click to hide internal directories.