Documentation
¶
Index ¶
- Variables
- type Asset
- type AssetType
- type Barcode
- type Category
- type CustomAttr
- type File
- type Label
- type LabelSize
- type ListAssetsQuery
- type ListAssetsQuerySearch
- type ListCategoriesQuery
- type ListCustomAttrNamesQuery
- type ListLocationsQuery
- type ListPage
- type ListPositionCodesQuery
- type Location
- type Manufacturer
- type MetaInfo
- type Model
- type MonetaryAmount
- type PageLayout
- type PageSize
- type Part
- type PositionCode
- type Purchase
- type Sheet
- type Status
- type Supplier
- type Tag
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTagNotFound = errors.New("tag not found")
Functions ¶
This section is empty.
Types ¶
type Asset ¶
type Asset struct {
ID int64 `form:"-"`
Type AssetType `form:"type"`
ParentAssetID int64 `form:"parent_asset_id"`
Parent *Asset `form:"-"`
Children []*Asset `form:"-"`
Status Status `form:"status"`
Tag string `form:"tag"`
Name string `form:"name"`
Category string `form:"category"`
Model string `form:"model"`
ModelNo string `form:"model_no"`
SerialNo string `form:"serial_no"`
Manufacturer string `form:"manufacturer"`
Notes string `form:"notes"`
ImageURL string `form:"-"`
ThumbnailURL string `form:"-"`
WarrantyUntil time.Time `form:"warranty_until,omitempty"`
Quantity uint64 `form:"quantity"`
QuantityUnit string `form:"quantity_unit"`
CustomAttrs []CustomAttr `form:"custom_attrs"`
CheckedOutTo int64 `form:"checked_out_to"`
Location string `form:"location"`
PositionCode string `form:"position_code"`
Purchases []*Purchase `form:"purchases"`
PartsTotalCounter int `form:"parts_total_counter"`
Parts []*Part `form:"parts"`
Files []*File `form:"-"`
MetaInfo MetaInfo `form:"-"`
}
type CustomAttr ¶
type LabelSize ¶
type LabelSize struct {
FontSize float64
// Height of a single label in mm including padding.
Height float64
// Width of a single label in mm including padding.
Width float64
// VerticalPadding applied to the inside of the label in mm.
VerticalPadding float64
// HorizontalPadding applied to the inside of the label in mm.
HorizontalPadding float64
// VerticalSpacing between each label in mm.
VerticalSpacing float64
// HorizontalSpacing between each label in mm.
HorizontalSpacing float64
}
type ListAssetsQuery ¶
type ListAssetsQuerySearch ¶
type ListCategoriesQuery ¶
type ListLocationsQuery ¶
type ListPositionCodesQuery ¶
type Manufacturer ¶
type Manufacturer struct {
Name string
}
type MonetaryAmount ¶
type MonetaryAmount int
func (MonetaryAmount) Format ¶
func (c MonetaryAmount) Format(decimalSeparator string) string
type PageLayout ¶
type Part ¶
type Part struct {
ID int64 `from:"id"`
AssetID int64 `form:"asset_id"`
Tag string `form:"tag"`
Name string `form:"name"`
Location string `form:"location"`
PositionCode string `form:"position_code"`
Notes string `form:"notes"`
CreatedBy int64 `form:"-"`
CreatedAt time.Time `form:"-"`
UpdatedAt time.Time `form:"-"`
}
type PositionCode ¶
type PositionCode struct {
Code string
}
type Sheet ¶
Click to show internal directories.
Click to hide internal directories.