Documentation
¶
Overview ¶
Package castmodel supplies imported rich Go shapes for CAST integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct {
ID int `json:"id" sqlx:"id,primaryKey=true"`
Unit string `json:"-" sqlx:"unit" internal:"true"`
Cap int `json:"-" sqlx:"cap" internal:"true"`
Bounds Bounds `json:"bounds" sqlx:"-"`
Labels []string `json:"labels" sqlx:"labels,enc=JSON"`
Has *RecordHas `json:"-" sqlx:"-" setMarker:"true"`
}
type Scalar ¶
type Scalar[T ScalarValue] struct { ID int `json:"id" sqlx:"id,primaryKey=true"` Unit string `json:"-" sqlx:"unit"` Cap int `json:"-" sqlx:"cap"` Value T `json:"value" sqlx:"-"` Has *ScalarHas `json:"-" sqlx:"-" setMarker:"true"` }
type ScalarValue ¶
Click to show internal directories.
Click to hide internal directories.