Documentation
¶
Index ¶
- Constants
- type FullReader
- type Global
- func (g *Global) CheckDevices() error
- func (g *Global) CheckMenuExecution()
- func (g *Global) ClientBegin(ctx context.Context)
- func (g *Global) ClientEnd(ctx context.Context)
- func (g *Global) Display() (*display.Display, error)
- func (g *Global) Error(err error)
- func (g *Global) Fatal(err error)
- func (g *Global) GetDevice(name string) (types.Devicer, error)
- func (g *Global) GetDeviceConfig(name string) (config_global.DeviceConfig, error)
- func (g *Global) Init(ctx context.Context, cfg *config_global.Config) (err error)
- func (g *Global) Iodin() (*iodin.Client, error)
- func (g *Global) Mdb() (*mdb.Bus, error)
- func (g *Global) Mega() (*mega.Client, error)
- func (g *Global) MustTextDisplay() *text_display.TextDisplay
- func (g *Global) OrderToMessage() *tele_api.Order
- func (g *Global) RegisterCommands(ctx context.Context)
- func (g *Global) RegisterDevice(name string, dev types.Devicer, probe func() error) error
- func (g *Global) RunBashSript(script string) (err error)
- func (g *Global) ScheduleSync(ctx context.Context, fun types.TaskFunc) error
- func (g *Global) SendCooking()
- func (g *Global) SendNotWork(s tele_api.State, errorMessage ...string)
- func (g *Global) ShowQR(t string)
- func (g *Global) Stop()
- func (g *Global) StopWait(timeout time.Duration) bool
- func (g *Global) TextDisplay() (*text_display.TextDisplay, error)
- func (g *Global) UI() types.UIer
- func (g *Global) UpgradeVender()
- func (g *Global) VmcStop(ctx context.Context, errorMessage ...string)
- func (g *Global) VmcStopWOInitRequared(ctx context.Context, errorMessage ...string)
- type MockFullReader
- type OsFullReader
Constants ¶
View Source
const ContextKey = "run/state-global"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullReader ¶
type Global ¶
type Global struct { Alive *alive.Alive BuildVersion string Config *config_global.Config Engine *engine.Engine Hardware hardware // hardware.go Inventory *inventory.Inventory Log *log2.Log Tele tele_api.Teler XXX_money atomic.Value // *money.MoneySystem crutch to import cycle XXX_uier atomic.Value // UIer crutch to import/init cycle }
func (*Global) CheckDevices ¶
func (*Global) CheckMenuExecution ¶ added in v0.241210.0
func (g *Global) CheckMenuExecution()
func (*Global) ClientBegin ¶
func (*Global) GetDeviceConfig ¶
func (g *Global) GetDeviceConfig(name string) (config_global.DeviceConfig, error)
func (*Global) MustTextDisplay ¶
func (g *Global) MustTextDisplay() *text_display.TextDisplay
func (*Global) OrderToMessage ¶ added in v0.250107.1
func (*Global) RegisterCommands ¶
func (*Global) RegisterDevice ¶
Drivers call RegisterDevice to declare device support. probe is called only for devices enabled in config.
func (*Global) RunBashSript ¶ added in v0.240119.0
func (*Global) ScheduleSync ¶
func (*Global) SendCooking ¶ added in v0.250107.1
func (g *Global) SendCooking()
func (*Global) SendNotWork ¶ added in v0.250116.0
send broken message
func (*Global) TextDisplay ¶
func (g *Global) TextDisplay() (*text_display.TextDisplay, error)
func (*Global) UpgradeVender ¶ added in v0.221212.0
func (g *Global) UpgradeVender()
type MockFullReader ¶
func NewMockFullReader ¶
func NewMockFullReader(sources map[string]string) *MockFullReader
func (*MockFullReader) Normalize ¶
func (ofr *MockFullReader) Normalize(name string) string
type OsFullReader ¶
type OsFullReader struct {
// contains filtered or unexported fields
}
func NewOsFullReader ¶
func NewOsFullReader() *OsFullReader
func (OsFullReader) Normalize ¶
func (ofr OsFullReader) Normalize(path string) string
func (*OsFullReader) SetBase ¶
func (ofr *OsFullReader) SetBase(path string)
Click to show internal directories.
Click to hide internal directories.