types

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 8

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.

Jump to

Keyboard shortcuts

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