Documentation ¶
Index ¶
- Constants
- Variables
- func Cook(ctx context.Context) error
- func CreamMax() uint8
- func CreateOrderMessageAndFillSelected() tele_api.FromRoboMessage
- func FillMenu(ctx context.Context)
- func OrderMenuAndTune(o *tele_api.Order)
- func ScaleTuneRate(value *uint8, max uint8, center uint8) float32
- func SugarMax() uint8
- func VisualHash(input, salt []byte) string
- type Menu
- type MenuItem
- type UI
- func (ui *UI) GetUiState() uint32
- func (ui *UI) Init(ctx context.Context) error
- func (ui *UI) LockDecrementWait()
- func (ui *UI) LockEnd()
- func (ui *UI) LockFunc(fun func()) bool
- func (ui *UI) Loop(ctx context.Context)
- func (ui *UI) ScheduleSync(ctx context.Context, fun types.TaskFunc) error
- func (ui *UI) State() types.UiState
- func (ui *UI) XXX_testSetState(new types.UiState)
Constants ¶
View Source
const ( DefaultCream uint8 = 4 MaxCream uint8 = 6 DefaultSugar uint8 = 4 MaxSugar uint8 = 8 )
View Source
const (
MsgError = "error"
)
Variables ¶
View Source
var ScaleAlpha = []byte{
0x94,
0x95,
0x96,
0x97,
}
Functions ¶
func CreateOrderMessageAndFillSelected ¶ added in v0.220427.0
func CreateOrderMessageAndFillSelected() tele_api.FromRoboMessage
func FillMenu ¶
AlexM FIXME с меню переделать. посмотреть что массив нигде не используется и в конфиге сразу заполнить карту.
func OrderMenuAndTune ¶ added in v0.230216.0
func VisualHash ¶
Types ¶
type UI ¶
type UI struct { FrontMaxPrice currency.Amount // FrontResult UIMenuResult Service uiService XXX_testHook func(types.UiState) // contains filtered or unexported fields }
func (*UI) GetUiState ¶ added in v0.230424.2
func (*UI) LockDecrementWait ¶
func (ui *UI) LockDecrementWait()
func (*UI) XXX_testSetState ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.