Documentation ¶
Overview ¶
Package types provides types that represent models in databases but are not tied to a specific database implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct { ID string // The unique identifier of the asset. CreatedAt time.Time // The creation timestamp of the asset. LastSeen time.Time Asset oam.Asset // The actual asset data. }
Asset represents an asset in the asset database. It contains an ID and the corresponding oam.Asset.
type Relation ¶
type Relation struct { ID string // The unique identifier of the relation. Type string // The type of the relationship. CreatedAt time.Time LastSeen time.Time FromAsset *Asset // The source asset of the relation. ToAsset *Asset // The destination asset of the relation. }
Relation represents a relationship between two assets in the asset database. It contains an ID, a type describing the relationship, and references to the source and destination assets.
Click to show internal directories.
Click to hide internal directories.