entities

package
v0.0.0-...-38bc8ed Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID          int       `yaml:"ID"`
	Name        string    `yaml:"Name"`
	Stock       int       `yaml:"Stock"`
	LastRestock time.Time `yaml:"LastRestock"`
}

type Reason

type Reason string
const (
	ReasonExpired       Reason = "Expired"
	ReasonNotApplicable Reason = "NA"
	ReasonTooFew        Reason = "Too Few"
	ReasonNone          Reason = ""
)

type Requirement

type Requirement struct {
	ID              int      `yaml:"ID"`
	Name            string   `yaml:"Name"`
	Quantity        int      `yaml:"Quantity"`
	Units           string   `yaml:"Units"`
	MaxShelfTime    int      `yaml:"MaxShelfTime"`
	ApplicableItems []string `yaml:"ApplicableItems"`
}

Jump to

Keyboard shortcuts

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