Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Aliases []Alias `hcl:"alias"`
OnBoot []string `hcl:"on_boot"`
FirstInit []string `hcl:"first_init"`
OnMenuError []string `hcl:"on_menu_error"`
OnServiceBegin []string `hcl:"on_service_begin"`
OnServiceEnd []string `hcl:"on_service_end"`
OnFrontBegin []string `hcl:"on_front_begin"`
OnBroken []string `hcl:"on_broken"`
Inventory Inventory
Menu struct {
Items []*MenuItem `hcl:"item"`
}
Profile struct {
Regexp string `hcl:"regexp"`
MinUs int `hcl:"min_us"`
LogFormat string `hcl:"log_format"`
}
}
type MenuItem ¶
type MenuItem struct {
Disabled bool `hcl:"disabled"`
Code string `hcl:"code,key"`
Name string `hcl:"name"`
XXX_Price int `hcl:"price"` // use scaled `Price`, this is for decoding config only
Scenario string `hcl:"scenario"`
CreamMax int `hcl:"creamMax"`
SugarMax int `hcl:"sugarMax"`
Price currency.Amount `hcl:"-"`
Doer engine.Doer `hcl:"-"`
}
Click to show internal directories.
Click to hide internal directories.