tele

package
v0.241210.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: CC0-1.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CmdReplay_name = map[int32]string{
		0: "nothing",
		1: "accepted",
		2: "done",
		3: "busy",
		4: "error",
	}
	CmdReplay_value = map[string]int32{
		"nothing":  0,
		"accepted": 1,
		"done":     2,
		"busy":     3,
		"error":    4,
	}
)

Enum value maps for CmdReplay.

View Source
var (
	CookReplay_name = map[int32]string{
		0: "cookNothing",
		1: "cookStart",
		2: "cookFinish",
		3: "cookInaccessible",
		4: "cookOverdraft",
		5: "cookError",
		6: "vmcbusy",
		7: "waitPay",
	}
	CookReplay_value = map[string]int32{
		"cookNothing":      0,
		"cookStart":        1,
		"cookFinish":       2,
		"cookInaccessible": 3,
		"cookOverdraft":    4,
		"cookError":        5,
		"vmcbusy":          6,
		"waitPay":          7,
	}
)

Enum value maps for CookReplay.

View Source
var (
	State_name = map[int32]string{
		0:  "Invalid",
		1:  "Boot",
		2:  "Nominal",
		3:  "Client",
		4:  "Broken",
		5:  "Service",
		6:  "Lock",
		7:  "Process",
		8:  "TemperatureProblem",
		9:  "Shutdown",
		10: "RemoteControl",
		11: "WaitingForExternalPayment",
		64: "RequestState",
	}
	State_value = map[string]int32{
		"Invalid":                   0,
		"Boot":                      1,
		"Nominal":                   2,
		"Client":                    3,
		"Broken":                    4,
		"Service":                   5,
		"Lock":                      6,
		"Process":                   7,
		"TemperatureProblem":        8,
		"Shutdown":                  9,
		"RemoteControl":             10,
		"WaitingForExternalPayment": 11,
		"RequestState":              64,
	}
)

Enum value maps for State.

View Source
var (
	PaymentMethod_name = map[int32]string{
		0: "Nothing",
		1: "Cash",
		2: "Cashless",
		3: "Gift",
		4: "Balance",
	}
	PaymentMethod_value = map[string]int32{
		"Nothing":  0,
		"Cash":     1,
		"Cashless": 2,
		"Gift":     3,
		"Balance":  4,
	}
)

Enum value maps for PaymentMethod.

View Source
var (
	OwnerType_name = map[int32]string{
		0: "noOwnerType",
		1: "telegramUser",
		2: "qrCashLessUser",
	}
	OwnerType_value = map[string]int32{
		"noOwnerType":    0,
		"telegramUser":   1,
		"qrCashLessUser": 2,
	}
)

Enum value maps for OwnerType.

View Source
var (
	OrderStatus_name = map[int32]string{
		0:  "noStatus",
		1:  "executionStart",
		2:  "complete",
		3:  "overdraft",
		4:  "executionInaccessible",
		5:  "orderError",
		6:  "robotIsBusy",
		7:  "waitingForPayment",
		8:  "cancel",
		64: "doSelected",
		65: "doTransferred",
	}
	OrderStatus_value = map[string]int32{
		"noStatus":              0,
		"executionStart":        1,
		"complete":              2,
		"overdraft":             3,
		"executionInaccessible": 4,
		"orderError":            5,
		"robotIsBusy":           6,
		"waitingForPayment":     7,
		"cancel":                8,
		"doSelected":            64,
		"doTransferred":         65,
	}
)

Enum value maps for OrderStatus.

View Source
var (
	MessageType_name = map[int32]string{
		0: "invalid",
		1: "showQR",
		2: "makeOrder",
		3: "executeCommand",
		4: "reportStock",
		5: "reportState",
	}
	MessageType_value = map[string]int32{
		"invalid":        0,
		"showQR":         1,
		"makeOrder":      2,
		"executeCommand": 3,
		"reportStock":    4,
		"reportState":    5,
	}
)

Enum value maps for MessageType.

View Source
var (
	ShowQR_QRType_name = map[int32]string{
		0: "invalid",
		1: "receipt",
		2: "order",
		3: "errorOverdraft",
		4: "error",
	}
	ShowQR_QRType_value = map[string]int32{
		"invalid":        0,
		"receipt":        1,
		"order":          2,
		"errorOverdraft": 3,
		"error":          4,
	}
)

Enum value maps for ShowQR_QRType.

Functions

This section is empty.

Types

type CmdReplay

type CmdReplay int32
const (
	CmdReplay_nothing  CmdReplay = 0
	CmdReplay_accepted CmdReplay = 1
	CmdReplay_done     CmdReplay = 2
	CmdReplay_busy     CmdReplay = 3
	CmdReplay_error    CmdReplay = 4
)

func (CmdReplay) Descriptor added in v0.241208.0

func (CmdReplay) Descriptor() protoreflect.EnumDescriptor

func (CmdReplay) Enum added in v0.241208.0

func (x CmdReplay) Enum() *CmdReplay

func (CmdReplay) EnumDescriptor deprecated

func (CmdReplay) EnumDescriptor() ([]byte, []int)

Deprecated: Use CmdReplay.Descriptor instead.

func (CmdReplay) Number added in v0.241208.0

func (x CmdReplay) Number() protoreflect.EnumNumber

func (CmdReplay) String

func (x CmdReplay) String() string

func (CmdReplay) Type added in v0.241208.0

type Command

type Command struct {
	Executer int64 `protobuf:"varint,5,opt,name=executer,proto3" json:"executer,omitempty"`
	Lock     bool  `protobuf:"varint,6,opt,name=lock,proto3" json:"lock,omitempty"`
	// Types that are assignable to Task:
	//
	//	*Command_Report
	//	*Command_GetState
	//	*Command_Exec
	//	*Command_SetInventory
	//	*Command_SetConfig
	//	*Command_Stop
	//	*Command_Show_QR
	//	*Command_ValidateCode
	//	*Command_Cook
	Task isCommand_Task `protobuf_oneof:"task"`
	// contains filtered or unexported fields
}

func (*Command) Descriptor deprecated

func (*Command) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetCook

func (x *Command) GetCook() *Command_ArgCook

func (*Command) GetExec

func (x *Command) GetExec() *Command_ArgExec

func (*Command) GetExecuter

func (x *Command) GetExecuter() int64

func (*Command) GetGetState added in v0.211002.0

func (x *Command) GetGetState() *Command_ArgGetState

func (*Command) GetLock

func (x *Command) GetLock() bool

func (*Command) GetReport

func (x *Command) GetReport() *Command_ArgReport

func (*Command) GetSetConfig

func (x *Command) GetSetConfig() *Command_ArgSetConfig

func (*Command) GetSetInventory

func (x *Command) GetSetInventory() *Command_ArgSetInventory

func (*Command) GetShow_QR

func (x *Command) GetShow_QR() *Command_ArgShowQR

func (*Command) GetStop

func (x *Command) GetStop() *Command_ArgSendStatus

func (*Command) GetTask

func (m *Command) GetTask() isCommand_Task

func (*Command) GetValidateCode

func (x *Command) GetValidateCode() *Command_ArgValidateCode

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) ProtoReflect added in v0.241208.0

func (x *Command) ProtoReflect() protoreflect.Message

func (*Command) Reset

func (x *Command) Reset()

func (*Command) String

func (x *Command) String() string

type Command_ArgCook

type Command_ArgCook struct {
	Menucode      string        `protobuf:"bytes,1,opt,name=menucode,proto3" json:"menucode,omitempty"`
	Cream         []byte        `protobuf:"bytes,2,opt,name=cream,proto3" json:"cream,omitempty"`
	Sugar         []byte        `protobuf:"bytes,3,opt,name=sugar,proto3" json:"sugar,omitempty"`
	Balance       int32         `protobuf:"varint,4,opt,name=balance,proto3" json:"balance,omitempty"`
	PaymentMethod PaymentMethod `protobuf:"varint,5,opt,name=payment_method,json=paymentMethod,proto3,enum=PaymentMethod" json:"payment_method,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ArgCook) Descriptor deprecated

func (*Command_ArgCook) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgCook.ProtoReflect.Descriptor instead.

func (*Command_ArgCook) GetBalance

func (x *Command_ArgCook) GetBalance() int32

func (*Command_ArgCook) GetCream

func (x *Command_ArgCook) GetCream() []byte

func (*Command_ArgCook) GetMenucode

func (x *Command_ArgCook) GetMenucode() string

func (*Command_ArgCook) GetPaymentMethod

func (x *Command_ArgCook) GetPaymentMethod() PaymentMethod

func (*Command_ArgCook) GetSugar

func (x *Command_ArgCook) GetSugar() []byte

func (*Command_ArgCook) ProtoMessage

func (*Command_ArgCook) ProtoMessage()

func (*Command_ArgCook) ProtoReflect added in v0.241208.0

func (x *Command_ArgCook) ProtoReflect() protoreflect.Message

func (*Command_ArgCook) Reset

func (x *Command_ArgCook) Reset()

func (*Command_ArgCook) String

func (x *Command_ArgCook) String() string

type Command_ArgExec

type Command_ArgExec struct {
	Scenario string `protobuf:"bytes,1,opt,name=scenario,proto3" json:"scenario,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ArgExec) Descriptor deprecated

func (*Command_ArgExec) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgExec.ProtoReflect.Descriptor instead.

func (*Command_ArgExec) GetScenario

func (x *Command_ArgExec) GetScenario() string

func (*Command_ArgExec) ProtoMessage

func (*Command_ArgExec) ProtoMessage()

func (*Command_ArgExec) ProtoReflect added in v0.241208.0

func (x *Command_ArgExec) ProtoReflect() protoreflect.Message

func (*Command_ArgExec) Reset

func (x *Command_ArgExec) Reset()

func (*Command_ArgExec) String

func (x *Command_ArgExec) String() string

type Command_ArgGetState added in v0.211002.0

type Command_ArgGetState struct {
	// contains filtered or unexported fields
}

func (*Command_ArgGetState) Descriptor deprecated added in v0.211002.0

func (*Command_ArgGetState) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgGetState.ProtoReflect.Descriptor instead.

func (*Command_ArgGetState) ProtoMessage added in v0.211002.0

func (*Command_ArgGetState) ProtoMessage()

func (*Command_ArgGetState) ProtoReflect added in v0.241208.0

func (x *Command_ArgGetState) ProtoReflect() protoreflect.Message

func (*Command_ArgGetState) Reset added in v0.211002.0

func (x *Command_ArgGetState) Reset()

func (*Command_ArgGetState) String added in v0.211002.0

func (x *Command_ArgGetState) String() string

type Command_ArgReport

type Command_ArgReport struct {
	// contains filtered or unexported fields
}

func (*Command_ArgReport) Descriptor deprecated

func (*Command_ArgReport) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgReport.ProtoReflect.Descriptor instead.

func (*Command_ArgReport) ProtoMessage

func (*Command_ArgReport) ProtoMessage()

func (*Command_ArgReport) ProtoReflect added in v0.241208.0

func (x *Command_ArgReport) ProtoReflect() protoreflect.Message

func (*Command_ArgReport) Reset

func (x *Command_ArgReport) Reset()

func (*Command_ArgReport) String

func (x *Command_ArgReport) String() string

type Command_ArgSendStatus

type Command_ArgSendStatus struct {
	// contains filtered or unexported fields
}

func (*Command_ArgSendStatus) Descriptor deprecated

func (*Command_ArgSendStatus) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgSendStatus.ProtoReflect.Descriptor instead.

func (*Command_ArgSendStatus) ProtoMessage

func (*Command_ArgSendStatus) ProtoMessage()

func (*Command_ArgSendStatus) ProtoReflect added in v0.241208.0

func (x *Command_ArgSendStatus) ProtoReflect() protoreflect.Message

func (*Command_ArgSendStatus) Reset

func (x *Command_ArgSendStatus) Reset()

func (*Command_ArgSendStatus) String

func (x *Command_ArgSendStatus) String() string

type Command_ArgSetConfig

type Command_ArgSetConfig struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	New  []byte `protobuf:"bytes,2,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ArgSetConfig) Descriptor deprecated

func (*Command_ArgSetConfig) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgSetConfig.ProtoReflect.Descriptor instead.

func (*Command_ArgSetConfig) GetName

func (x *Command_ArgSetConfig) GetName() string

func (*Command_ArgSetConfig) GetNew

func (x *Command_ArgSetConfig) GetNew() []byte

func (*Command_ArgSetConfig) ProtoMessage

func (*Command_ArgSetConfig) ProtoMessage()

func (*Command_ArgSetConfig) ProtoReflect added in v0.241208.0

func (x *Command_ArgSetConfig) ProtoReflect() protoreflect.Message

func (*Command_ArgSetConfig) Reset

func (x *Command_ArgSetConfig) Reset()

func (*Command_ArgSetConfig) String

func (x *Command_ArgSetConfig) String() string

type Command_ArgSetInventory

type Command_ArgSetInventory struct {
	New *Inventory `protobuf:"bytes,1,opt,name=new,proto3" json:"new,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ArgSetInventory) Descriptor deprecated

func (*Command_ArgSetInventory) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgSetInventory.ProtoReflect.Descriptor instead.

func (*Command_ArgSetInventory) GetNew

func (x *Command_ArgSetInventory) GetNew() *Inventory

func (*Command_ArgSetInventory) ProtoMessage

func (*Command_ArgSetInventory) ProtoMessage()

func (*Command_ArgSetInventory) ProtoReflect added in v0.241208.0

func (x *Command_ArgSetInventory) ProtoReflect() protoreflect.Message

func (*Command_ArgSetInventory) Reset

func (x *Command_ArgSetInventory) Reset()

func (*Command_ArgSetInventory) String

func (x *Command_ArgSetInventory) String() string

type Command_ArgShowQR

type Command_ArgShowQR struct {
	Layout string `protobuf:"bytes,1,opt,name=layout,proto3" json:"layout,omitempty"`
	QrText string `protobuf:"bytes,2,opt,name=qr_text,json=qrText,proto3" json:"qr_text,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ArgShowQR) Descriptor deprecated

func (*Command_ArgShowQR) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgShowQR.ProtoReflect.Descriptor instead.

func (*Command_ArgShowQR) GetLayout

func (x *Command_ArgShowQR) GetLayout() string

func (*Command_ArgShowQR) GetQrText

func (x *Command_ArgShowQR) GetQrText() string

func (*Command_ArgShowQR) ProtoMessage

func (*Command_ArgShowQR) ProtoMessage()

func (*Command_ArgShowQR) ProtoReflect added in v0.241208.0

func (x *Command_ArgShowQR) ProtoReflect() protoreflect.Message

func (*Command_ArgShowQR) Reset

func (x *Command_ArgShowQR) Reset()

func (*Command_ArgShowQR) String

func (x *Command_ArgShowQR) String() string

type Command_ArgValidateCode

type Command_ArgValidateCode struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Command_ArgValidateCode) Descriptor deprecated

func (*Command_ArgValidateCode) Descriptor() ([]byte, []int)

Deprecated: Use Command_ArgValidateCode.ProtoReflect.Descriptor instead.

func (*Command_ArgValidateCode) GetCode

func (x *Command_ArgValidateCode) GetCode() string

func (*Command_ArgValidateCode) ProtoMessage

func (*Command_ArgValidateCode) ProtoMessage()

func (*Command_ArgValidateCode) ProtoReflect added in v0.241208.0

func (x *Command_ArgValidateCode) ProtoReflect() protoreflect.Message

func (*Command_ArgValidateCode) Reset

func (x *Command_ArgValidateCode) Reset()

func (*Command_ArgValidateCode) String

func (x *Command_ArgValidateCode) String() string

type Command_Cook

type Command_Cook struct {
	Cook *Command_ArgCook `protobuf:"bytes,24,opt,name=cook,proto3,oneof"`
}

type Command_Exec

type Command_Exec struct {
	Exec *Command_ArgExec `protobuf:"bytes,18,opt,name=exec,proto3,oneof"`
}

type Command_GetState added in v0.211002.0

type Command_GetState struct {
	GetState *Command_ArgGetState `protobuf:"bytes,17,opt,name=getState,proto3,oneof"`
}

type Command_Report

type Command_Report struct {
	Report *Command_ArgReport `protobuf:"bytes,16,opt,name=report,proto3,oneof"`
}

type Command_SetConfig

type Command_SetConfig struct {
	SetConfig *Command_ArgSetConfig `protobuf:"bytes,20,opt,name=set_config,json=setConfig,proto3,oneof"`
}

type Command_SetInventory

type Command_SetInventory struct {
	SetInventory *Command_ArgSetInventory `protobuf:"bytes,19,opt,name=set_inventory,json=setInventory,proto3,oneof"`
}

type Command_Show_QR

type Command_Show_QR struct {
	Show_QR *Command_ArgShowQR `protobuf:"bytes,22,opt,name=show_QR,json=showQR,proto3,oneof"`
}

type Command_Stop

type Command_Stop struct {
	Stop *Command_ArgSendStatus `protobuf:"bytes,21,opt,name=stop,proto3,oneof"`
}

type Command_ValidateCode

type Command_ValidateCode struct {
	ValidateCode *Command_ArgValidateCode `protobuf:"bytes,23,opt,name=validate_code,json=validateCode,proto3,oneof"`
}

type CookReplay

type CookReplay int32
const (
	CookReplay_cookNothing      CookReplay = 0
	CookReplay_cookStart        CookReplay = 1
	CookReplay_cookFinish       CookReplay = 2
	CookReplay_cookInaccessible CookReplay = 3
	CookReplay_cookOverdraft    CookReplay = 4
	CookReplay_cookError        CookReplay = 5
	CookReplay_vmcbusy          CookReplay = 6
	CookReplay_waitPay          CookReplay = 7
)

func (CookReplay) Descriptor added in v0.241208.0

func (CookReplay) Descriptor() protoreflect.EnumDescriptor

func (CookReplay) Enum added in v0.241208.0

func (x CookReplay) Enum() *CookReplay

func (CookReplay) EnumDescriptor deprecated

func (CookReplay) EnumDescriptor() ([]byte, []int)

Deprecated: Use CookReplay.Descriptor instead.

func (CookReplay) Number added in v0.241208.0

func (x CookReplay) Number() protoreflect.EnumNumber

func (CookReplay) String

func (x CookReplay) String() string

func (CookReplay) Type added in v0.241208.0

type Err added in v0.220329.0

type Err struct {
	Code    uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*Err) Descriptor deprecated added in v0.220329.0

func (*Err) Descriptor() ([]byte, []int)

Deprecated: Use Err.ProtoReflect.Descriptor instead.

func (*Err) GetCode added in v0.220329.0

func (x *Err) GetCode() uint32

func (*Err) GetMessage added in v0.220329.0

func (x *Err) GetMessage() string

func (*Err) ProtoMessage added in v0.220329.0

func (*Err) ProtoMessage()

func (*Err) ProtoReflect added in v0.241208.0

func (x *Err) ProtoReflect() protoreflect.Message

func (*Err) Reset added in v0.220329.0

func (x *Err) Reset()

func (*Err) String added in v0.220329.0

func (x *Err) String() string

type FromRoboMessage added in v0.220327.0

type FromRoboMessage struct {
	State        State         `protobuf:"varint,1,opt,name=state,proto3,enum=State" json:"state,omitempty"`
	RoboTime     int64         `protobuf:"varint,2,opt,name=roboTime,proto3" json:"roboTime,omitempty"`
	Order        *Order        `protobuf:"bytes,3,opt,name=Order,proto3" json:"Order,omitempty"`
	Err          *Err          `protobuf:"bytes,4,opt,name=err,proto3" json:"err,omitempty"`
	RoboHardware *RoboHardware `protobuf:"bytes,5,opt,name=RoboHardware,proto3" json:"RoboHardware,omitempty"`
	Stock        *Stock        `protobuf:"bytes,6,opt,name=Stock,proto3" json:"Stock,omitempty"`
	// contains filtered or unexported fields
}

func (*FromRoboMessage) Descriptor deprecated added in v0.220327.0

func (*FromRoboMessage) Descriptor() ([]byte, []int)

Deprecated: Use FromRoboMessage.ProtoReflect.Descriptor instead.

func (*FromRoboMessage) GetErr added in v0.220329.0

func (x *FromRoboMessage) GetErr() *Err

func (*FromRoboMessage) GetOrder added in v0.220327.0

func (x *FromRoboMessage) GetOrder() *Order

func (*FromRoboMessage) GetRoboHardware added in v0.220427.0

func (x *FromRoboMessage) GetRoboHardware() *RoboHardware

func (*FromRoboMessage) GetRoboTime added in v0.220427.0

func (x *FromRoboMessage) GetRoboTime() int64

func (*FromRoboMessage) GetState added in v0.220327.0

func (x *FromRoboMessage) GetState() State

func (*FromRoboMessage) GetStock added in v0.220622.1

func (x *FromRoboMessage) GetStock() *Stock

func (*FromRoboMessage) ProtoMessage added in v0.220327.0

func (*FromRoboMessage) ProtoMessage()

func (*FromRoboMessage) ProtoReflect added in v0.241208.0

func (x *FromRoboMessage) ProtoReflect() protoreflect.Message

func (*FromRoboMessage) Reset added in v0.220327.0

func (x *FromRoboMessage) Reset()

func (*FromRoboMessage) String added in v0.220327.0

func (x *FromRoboMessage) String() string

type Inventory

type Inventory struct {
	Stocks []*Inventory_StockItem `protobuf:"bytes,1,rep,name=stocks,proto3" json:"stocks,omitempty"`
	// contains filtered or unexported fields
}

func (*Inventory) Descriptor deprecated

func (*Inventory) Descriptor() ([]byte, []int)

Deprecated: Use Inventory.ProtoReflect.Descriptor instead.

func (*Inventory) GetStocks

func (x *Inventory) GetStocks() []*Inventory_StockItem

func (*Inventory) ProtoMessage

func (*Inventory) ProtoMessage()

func (*Inventory) ProtoReflect added in v0.241208.0

func (x *Inventory) ProtoReflect() protoreflect.Message

func (*Inventory) Reset

func (x *Inventory) Reset()

func (*Inventory) String

func (x *Inventory) String() string

type Inventory_StockItem

type Inventory_StockItem struct {
	Code   uint32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Value  int32   `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	Name   string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Hopper int32   `protobuf:"varint,4,opt,name=hopper,proto3" json:"hopper,omitempty"`
	Valuef float32 `protobuf:"fixed32,5,opt,name=valuef,proto3" json:"valuef,omitempty"`
	// contains filtered or unexported fields
}

func (*Inventory_StockItem) Descriptor deprecated

func (*Inventory_StockItem) Descriptor() ([]byte, []int)

Deprecated: Use Inventory_StockItem.ProtoReflect.Descriptor instead.

func (*Inventory_StockItem) GetCode

func (x *Inventory_StockItem) GetCode() uint32

func (*Inventory_StockItem) GetHopper

func (x *Inventory_StockItem) GetHopper() int32

func (*Inventory_StockItem) GetName

func (x *Inventory_StockItem) GetName() string

func (*Inventory_StockItem) GetValue

func (x *Inventory_StockItem) GetValue() int32

func (*Inventory_StockItem) GetValuef

func (x *Inventory_StockItem) GetValuef() float32

func (*Inventory_StockItem) ProtoMessage

func (*Inventory_StockItem) ProtoMessage()

func (*Inventory_StockItem) ProtoReflect added in v0.241208.0

func (x *Inventory_StockItem) ProtoReflect() protoreflect.Message

func (*Inventory_StockItem) Reset

func (x *Inventory_StockItem) Reset()

func (*Inventory_StockItem) String

func (x *Inventory_StockItem) String() string

type MessageType added in v0.220427.0

type MessageType int32
const (
	MessageType_invalid        MessageType = 0
	MessageType_showQR         MessageType = 1
	MessageType_makeOrder      MessageType = 2
	MessageType_executeCommand MessageType = 3
	MessageType_reportStock    MessageType = 4
	MessageType_reportState    MessageType = 5
)

func (MessageType) Descriptor added in v0.241208.0

func (MessageType) Enum added in v0.241208.0

func (x MessageType) Enum() *MessageType

func (MessageType) EnumDescriptor deprecated added in v0.220427.0

func (MessageType) EnumDescriptor() ([]byte, []int)

Deprecated: Use MessageType.Descriptor instead.

func (MessageType) Number added in v0.241208.0

func (x MessageType) Number() protoreflect.EnumNumber

func (MessageType) String added in v0.220427.0

func (x MessageType) String() string

func (MessageType) Type added in v0.241208.0

type Noop

type Noop struct{}

func (Noop) Close

func (Noop) Close()

func (Noop) CommandResponse added in v0.220315.0

func (Noop) CommandResponse(*Response)

func (Noop) Error

func (Noop) Error(error)

func (Noop) ErrorStr added in v0.220624.0

func (Noop) ErrorStr(string)

func (Noop) GetState added in v0.231019.0

func (Noop) GetState() State

func (Noop) Init

func (Noop) Log added in v0.220707.0

func (Noop) Log(string)

func (Noop) Report

func (Noop) Report(ctx context.Context, serviceTag bool) error

func (Noop) RoboConnected added in v0.220622.1

func (Noop) RoboConnected() bool

func (Noop) RoboSend added in v0.220327.0

func (Noop) RoboSend(*FromRoboMessage)

func (Noop) RoboSendBroken added in v0.240106.0

func (Noop) RoboSendBroken()

func (Noop) RoboSendState added in v0.220427.0

func (Noop) RoboSendState(s State)

func (Noop) StatModify

func (Noop) StatModify(func(*Stat))

func (Noop) Transaction

func (Noop) Transaction(*Telemetry_Transaction)

type Order added in v0.220327.0

type Order struct {
	MenuCode        string        `protobuf:"bytes,1,opt,name=menuCode,proto3" json:"menuCode,omitempty"`
	Cream           []byte        `protobuf:"bytes,2,opt,name=cream,proto3" json:"cream,omitempty"`    // default = 0
	Sugar           []byte        `protobuf:"bytes,3,opt,name=sugar,proto3" json:"sugar,omitempty"`    // default = 0
	Amount          uint32        `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` // цена в копейках
	OrderStatus     OrderStatus   `protobuf:"varint,6,opt,name=orderStatus,proto3,enum=OrderStatus" json:"orderStatus,omitempty"`
	PaymentMethod   PaymentMethod `protobuf:"varint,7,opt,name=paymentMethod,proto3,enum=PaymentMethod" json:"paymentMethod,omitempty"`
	OwnerInt        int64         `protobuf:"varint,8,opt,name=ownerInt,proto3" json:"ownerInt,omitempty"` // id клиента
	OwnerStr        string        `protobuf:"bytes,9,opt,name=ownerStr,proto3" json:"ownerStr,omitempty"`  //
	OwnerType       OwnerType     `protobuf:"varint,10,opt,name=ownerType,proto3,enum=OwnerType" json:"ownerType,omitempty"`
	RedirectDueDate int64         `protobuf:"varint,11,opt,name=redirectDueDate,proto3" json:"redirectDueDate,omitempty"`
	// contains filtered or unexported fields
}

func (*Order) Descriptor deprecated added in v0.220327.0

func (*Order) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetAmount added in v0.220327.0

func (x *Order) GetAmount() uint32

func (*Order) GetCream added in v0.220327.0

func (x *Order) GetCream() []byte

func (*Order) GetMenuCode added in v0.220327.0

func (x *Order) GetMenuCode() string

func (*Order) GetOrderStatus added in v0.220327.0

func (x *Order) GetOrderStatus() OrderStatus

func (*Order) GetOwnerInt added in v0.220327.0

func (x *Order) GetOwnerInt() int64

func (*Order) GetOwnerStr added in v0.220327.0

func (x *Order) GetOwnerStr() string

func (*Order) GetOwnerType added in v0.220327.0

func (x *Order) GetOwnerType() OwnerType

func (*Order) GetPaymentMethod added in v0.220327.0

func (x *Order) GetPaymentMethod() PaymentMethod

func (*Order) GetRedirectDueDate added in v0.220327.0

func (x *Order) GetRedirectDueDate() int64

func (*Order) GetSugar added in v0.220327.0

func (x *Order) GetSugar() []byte

func (*Order) ProtoMessage added in v0.220327.0

func (*Order) ProtoMessage()

func (*Order) ProtoReflect added in v0.241208.0

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset added in v0.220327.0

func (x *Order) Reset()

func (*Order) String added in v0.220327.0

func (x *Order) String() string

type OrderStatus added in v0.220327.0

type OrderStatus int32
const (
	OrderStatus_noStatus              OrderStatus = 0
	OrderStatus_executionStart        OrderStatus = 1
	OrderStatus_complete              OrderStatus = 2
	OrderStatus_overdraft             OrderStatus = 3
	OrderStatus_executionInaccessible OrderStatus = 4
	OrderStatus_orderError            OrderStatus = 5
	OrderStatus_robotIsBusy           OrderStatus = 6
	OrderStatus_waitingForPayment     OrderStatus = 7
	OrderStatus_cancel                OrderStatus = 8
	OrderStatus_doSelected            OrderStatus = 64
	OrderStatus_doTransferred         OrderStatus = 65
)

func (OrderStatus) Descriptor added in v0.241208.0

func (OrderStatus) Enum added in v0.241208.0

func (x OrderStatus) Enum() *OrderStatus

func (OrderStatus) EnumDescriptor deprecated added in v0.220327.0

func (OrderStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderStatus.Descriptor instead.

func (OrderStatus) Number added in v0.241208.0

func (x OrderStatus) Number() protoreflect.EnumNumber

func (OrderStatus) String added in v0.220327.0

func (x OrderStatus) String() string

func (OrderStatus) Type added in v0.241208.0

type OwnerType added in v0.220327.0

type OwnerType int32
const (
	OwnerType_noOwnerType    OwnerType = 0
	OwnerType_telegramUser   OwnerType = 1
	OwnerType_qrCashLessUser OwnerType = 2
)

func (OwnerType) Descriptor added in v0.241208.0

func (OwnerType) Descriptor() protoreflect.EnumDescriptor

func (OwnerType) Enum added in v0.241208.0

func (x OwnerType) Enum() *OwnerType

func (OwnerType) EnumDescriptor deprecated added in v0.220327.0

func (OwnerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OwnerType.Descriptor instead.

func (OwnerType) Number added in v0.241208.0

func (x OwnerType) Number() protoreflect.EnumNumber

func (OwnerType) String added in v0.220327.0

func (x OwnerType) String() string

func (OwnerType) Type added in v0.241208.0

type PaymentMethod

type PaymentMethod int32
const (
	PaymentMethod_Nothing  PaymentMethod = 0
	PaymentMethod_Cash     PaymentMethod = 1
	PaymentMethod_Cashless PaymentMethod = 2
	PaymentMethod_Gift     PaymentMethod = 3
	PaymentMethod_Balance  PaymentMethod = 4
)

func (PaymentMethod) Descriptor added in v0.241208.0

func (PaymentMethod) Enum added in v0.241208.0

func (x PaymentMethod) Enum() *PaymentMethod

func (PaymentMethod) EnumDescriptor deprecated

func (PaymentMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use PaymentMethod.Descriptor instead.

func (PaymentMethod) Number added in v0.241208.0

func (PaymentMethod) String

func (x PaymentMethod) String() string

func (PaymentMethod) Type added in v0.241208.0

type Response

type Response struct {

	// uint32 command_id = 1;
	Error          string     `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	Data           string     `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	Executer       int64      `protobuf:"varint,4,opt,name=executer,proto3" json:"executer,omitempty"`
	CmdReplay      CmdReplay  `protobuf:"varint,5,opt,name=cmd_replay,json=cmdReplay,proto3,enum=CmdReplay" json:"cmd_replay,omitempty"`
	CookReplay     CookReplay `protobuf:"varint,6,opt,name=cook_replay,json=cookReplay,proto3,enum=CookReplay" json:"cook_replay,omitempty"`
	ValidateReplay uint32     `protobuf:"varint,7,opt,name=validateReplay,proto3" json:"validateReplay,omitempty"`
	INTERNALTopic  string     `protobuf:"bytes,2048,opt,name=INTERNAL_topic,json=INTERNALTopic,proto3" json:"INTERNAL_topic,omitempty"` // convenience
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCmdReplay

func (x *Response) GetCmdReplay() CmdReplay

func (*Response) GetCookReplay

func (x *Response) GetCookReplay() CookReplay

func (*Response) GetData

func (x *Response) GetData() string

func (*Response) GetError

func (x *Response) GetError() string

func (*Response) GetExecuter

func (x *Response) GetExecuter() int64

func (*Response) GetINTERNALTopic

func (x *Response) GetINTERNALTopic() string

func (*Response) GetValidateReplay

func (x *Response) GetValidateReplay() uint32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.241208.0

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type RoboHardware added in v0.220427.0

type RoboHardware struct {
	SwVersion   string `protobuf:"bytes,1,opt,name=SwVersion,proto3" json:"SwVersion,omitempty"`
	Temperature int32  `protobuf:"varint,3,opt,name=temperature,proto3" json:"temperature,omitempty"`
	// contains filtered or unexported fields
}

func (*RoboHardware) Descriptor deprecated added in v0.220427.0

func (*RoboHardware) Descriptor() ([]byte, []int)

Deprecated: Use RoboHardware.ProtoReflect.Descriptor instead.

func (*RoboHardware) GetSwVersion added in v0.220709.0

func (x *RoboHardware) GetSwVersion() string

func (*RoboHardware) GetTemperature added in v0.220427.0

func (x *RoboHardware) GetTemperature() int32

func (*RoboHardware) ProtoMessage added in v0.220427.0

func (*RoboHardware) ProtoMessage()

func (*RoboHardware) ProtoReflect added in v0.241208.0

func (x *RoboHardware) ProtoReflect() protoreflect.Message

func (*RoboHardware) Reset added in v0.220427.0

func (x *RoboHardware) Reset()

func (*RoboHardware) String added in v0.220427.0

func (x *RoboHardware) String() string

type ShowQR added in v0.220329.0

type ShowQR struct {
	QrType  ShowQR_QRType `protobuf:"varint,1,opt,name=qrType,proto3,enum=ShowQR_QRType" json:"qrType,omitempty"`
	QrText  string        `protobuf:"bytes,2,opt,name=qrText,proto3" json:"qrText,omitempty"`
	DataStr string        `protobuf:"bytes,3,opt,name=dataStr,proto3" json:"dataStr,omitempty"`
	DataInt int32         `protobuf:"varint,4,opt,name=dataInt,proto3" json:"dataInt,omitempty"`
	PayerId int64         `protobuf:"varint,5,opt,name=payerId,proto3" json:"payerId,omitempty"`
	OrderId string        `protobuf:"bytes,6,opt,name=orderId,proto3" json:"orderId,omitempty"`
	Amount  int32         `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowQR) Descriptor deprecated added in v0.220329.0

func (*ShowQR) Descriptor() ([]byte, []int)

Deprecated: Use ShowQR.ProtoReflect.Descriptor instead.

func (*ShowQR) GetAmount added in v0.241208.0

func (x *ShowQR) GetAmount() int32

func (*ShowQR) GetDataInt added in v0.220427.0

func (x *ShowQR) GetDataInt() int32

func (*ShowQR) GetDataStr added in v0.220427.0

func (x *ShowQR) GetDataStr() string

func (*ShowQR) GetOrderId added in v0.241208.0

func (x *ShowQR) GetOrderId() string

func (*ShowQR) GetPayerId added in v0.241208.0

func (x *ShowQR) GetPayerId() int64

func (*ShowQR) GetQrText added in v0.220329.0

func (x *ShowQR) GetQrText() string

func (*ShowQR) GetQrType added in v0.220329.0

func (x *ShowQR) GetQrType() ShowQR_QRType

func (*ShowQR) ProtoMessage added in v0.220329.0

func (*ShowQR) ProtoMessage()

func (*ShowQR) ProtoReflect added in v0.241208.0

func (x *ShowQR) ProtoReflect() protoreflect.Message

func (*ShowQR) Reset added in v0.220329.0

func (x *ShowQR) Reset()

func (*ShowQR) String added in v0.220329.0

func (x *ShowQR) String() string

type ShowQR_QRType added in v0.220427.0

type ShowQR_QRType int32
const (
	ShowQR_invalid        ShowQR_QRType = 0
	ShowQR_receipt        ShowQR_QRType = 1
	ShowQR_order          ShowQR_QRType = 2
	ShowQR_errorOverdraft ShowQR_QRType = 3
	ShowQR_error          ShowQR_QRType = 4
)

func (ShowQR_QRType) Descriptor added in v0.241208.0

func (ShowQR_QRType) Enum added in v0.241208.0

func (x ShowQR_QRType) Enum() *ShowQR_QRType

func (ShowQR_QRType) EnumDescriptor deprecated added in v0.220427.0

func (ShowQR_QRType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ShowQR_QRType.Descriptor instead.

func (ShowQR_QRType) Number added in v0.241208.0

func (ShowQR_QRType) String added in v0.220427.0

func (x ShowQR_QRType) String() string

func (ShowQR_QRType) Type added in v0.241208.0

type Stat

type Stat struct {
	sync.Mutex
	Telemetry_Stat
}

Stat struct TODO try github.com/rcrowley/go-metrics Low priority telemetry buffer. Can be updated at any time. Sent together with more important data or on `Command_Report`

func (*Stat) Locked_Reset

func (s *Stat) Locked_Reset()

Locked_Reset Internal for tele package. Caller must hold s.Mutex.

type State

type State int32

---------------------------------------------------------------------- new

const (
	State_Invalid                   State = 0
	State_Boot                      State = 1
	State_Nominal                   State = 2
	State_Client                    State = 3
	State_Broken                    State = 4
	State_Service                   State = 5
	State_Lock                      State = 6
	State_Process                   State = 7
	State_TemperatureProblem        State = 8
	State_Shutdown                  State = 9
	State_RemoteControl             State = 10
	State_WaitingForExternalPayment State = 11
	State_RequestState              State = 64
)

func (State) Descriptor added in v0.241208.0

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum added in v0.241208.0

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

func (State) EnumDescriptor() ([]byte, []int)

Deprecated: Use State.Descriptor instead.

func (State) Number added in v0.241208.0

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type added in v0.241208.0

func (State) Type() protoreflect.EnumType

type Stock added in v0.220622.1

type Stock struct {
	Stocks []*Stock_StockItem `protobuf:"bytes,1,rep,name=stocks,proto3" json:"stocks,omitempty"`
	// contains filtered or unexported fields
}

func (*Stock) Descriptor deprecated added in v0.220622.1

func (*Stock) Descriptor() ([]byte, []int)

Deprecated: Use Stock.ProtoReflect.Descriptor instead.

func (*Stock) GetStocks added in v0.220622.1

func (x *Stock) GetStocks() []*Stock_StockItem

func (*Stock) ProtoMessage added in v0.220622.1

func (*Stock) ProtoMessage()

func (*Stock) ProtoReflect added in v0.241208.0

func (x *Stock) ProtoReflect() protoreflect.Message

func (*Stock) Reset added in v0.220622.1

func (x *Stock) Reset()

func (*Stock) String added in v0.220622.1

func (x *Stock) String() string

type Stock_StockItem added in v0.220622.1

type Stock_StockItem struct {
	Code  uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Value int32  `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Stock_StockItem) Descriptor deprecated added in v0.220622.1

func (*Stock_StockItem) Descriptor() ([]byte, []int)

Deprecated: Use Stock_StockItem.ProtoReflect.Descriptor instead.

func (*Stock_StockItem) GetCode added in v0.220622.1

func (x *Stock_StockItem) GetCode() uint32

func (*Stock_StockItem) GetValue added in v0.220622.1

func (x *Stock_StockItem) GetValue() int32

func (*Stock_StockItem) ProtoMessage added in v0.220622.1

func (*Stock_StockItem) ProtoMessage()

func (*Stock_StockItem) ProtoReflect added in v0.241208.0

func (x *Stock_StockItem) ProtoReflect() protoreflect.Message

func (*Stock_StockItem) Reset added in v0.220622.1

func (x *Stock_StockItem) Reset()

func (*Stock_StockItem) String added in v0.220622.1

func (x *Stock_StockItem) String() string

type Telemetry

type Telemetry struct {
	VmId         int32                  `protobuf:"varint,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
	Time         int64                  `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"`
	Error        *Telemetry_Error       `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	Inventory    *Inventory             `protobuf:"bytes,4,opt,name=inventory,proto3" json:"inventory,omitempty"`
	MoneyCashbox *Telemetry_Money       `protobuf:"bytes,5,opt,name=money_cashbox,json=moneyCashbox,proto3" json:"money_cashbox,omitempty"`
	Transaction  *Telemetry_Transaction `protobuf:"bytes,6,opt,name=transaction,proto3" json:"transaction,omitempty"`
	Stat         *Telemetry_Stat        `protobuf:"bytes,7,opt,name=stat,proto3" json:"stat,omitempty"`
	MoneySave    *Telemetry_Money       `protobuf:"bytes,8,opt,name=money_save,json=moneySave,proto3" json:"money_save,omitempty"`
	MoneyChange  *Telemetry_Money       `protobuf:"bytes,9,opt,name=money_change,json=moneyChange,proto3" json:"money_change,omitempty"`
	AtService    bool                   `protobuf:"varint,16,opt,name=at_service,json=atService,proto3" json:"at_service,omitempty"` //  string build_version = 17;
	// contains filtered or unexported fields
}

func (*Telemetry) Descriptor deprecated

func (*Telemetry) Descriptor() ([]byte, []int)

Deprecated: Use Telemetry.ProtoReflect.Descriptor instead.

func (*Telemetry) GetAtService

func (x *Telemetry) GetAtService() bool

func (*Telemetry) GetError

func (x *Telemetry) GetError() *Telemetry_Error

func (*Telemetry) GetInventory

func (x *Telemetry) GetInventory() *Inventory

func (*Telemetry) GetMoneyCashbox

func (x *Telemetry) GetMoneyCashbox() *Telemetry_Money

func (*Telemetry) GetMoneyChange

func (x *Telemetry) GetMoneyChange() *Telemetry_Money

func (*Telemetry) GetMoneySave

func (x *Telemetry) GetMoneySave() *Telemetry_Money

func (*Telemetry) GetStat

func (x *Telemetry) GetStat() *Telemetry_Stat

func (*Telemetry) GetTime

func (x *Telemetry) GetTime() int64

func (*Telemetry) GetTransaction

func (x *Telemetry) GetTransaction() *Telemetry_Transaction

func (*Telemetry) GetVmId

func (x *Telemetry) GetVmId() int32

func (*Telemetry) ProtoMessage

func (*Telemetry) ProtoMessage()

func (*Telemetry) ProtoReflect added in v0.241208.0

func (x *Telemetry) ProtoReflect() protoreflect.Message

func (*Telemetry) Reset

func (x *Telemetry) Reset()

func (*Telemetry) String

func (x *Telemetry) String() string

type Telemetry_Error

type Telemetry_Error struct {
	Code    uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Count   uint32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*Telemetry_Error) Descriptor deprecated

func (*Telemetry_Error) Descriptor() ([]byte, []int)

Deprecated: Use Telemetry_Error.ProtoReflect.Descriptor instead.

func (*Telemetry_Error) GetCode

func (x *Telemetry_Error) GetCode() uint32

func (*Telemetry_Error) GetCount

func (x *Telemetry_Error) GetCount() uint32

func (*Telemetry_Error) GetMessage

func (x *Telemetry_Error) GetMessage() string

func (*Telemetry_Error) ProtoMessage

func (*Telemetry_Error) ProtoMessage()

func (*Telemetry_Error) ProtoReflect added in v0.241208.0

func (x *Telemetry_Error) ProtoReflect() protoreflect.Message

func (*Telemetry_Error) Reset

func (x *Telemetry_Error) Reset()

func (*Telemetry_Error) String

func (x *Telemetry_Error) String() string

type Telemetry_Money

type Telemetry_Money struct {
	TotalBills uint32            `protobuf:"varint,1,opt,name=total_bills,json=totalBills,proto3" json:"total_bills,omitempty"`
	TotalCoins uint32            `protobuf:"varint,2,opt,name=total_coins,json=totalCoins,proto3" json:"total_coins,omitempty"`
	Bills      map[uint32]uint32 `` /* 153-byte string literal not displayed */
	Coins      map[uint32]uint32 `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Telemetry_Money) Descriptor deprecated

func (*Telemetry_Money) Descriptor() ([]byte, []int)

Deprecated: Use Telemetry_Money.ProtoReflect.Descriptor instead.

func (*Telemetry_Money) GetBills

func (x *Telemetry_Money) GetBills() map[uint32]uint32

func (*Telemetry_Money) GetCoins

func (x *Telemetry_Money) GetCoins() map[uint32]uint32

func (*Telemetry_Money) GetTotalBills

func (x *Telemetry_Money) GetTotalBills() uint32

func (*Telemetry_Money) GetTotalCoins

func (x *Telemetry_Money) GetTotalCoins() uint32

func (*Telemetry_Money) ProtoMessage

func (*Telemetry_Money) ProtoMessage()

func (*Telemetry_Money) ProtoReflect added in v0.241208.0

func (x *Telemetry_Money) ProtoReflect() protoreflect.Message

func (*Telemetry_Money) Reset

func (x *Telemetry_Money) Reset()

func (*Telemetry_Money) String

func (x *Telemetry_Money) String() string

type Telemetry_Stat

type Telemetry_Stat struct {
	Activity     uint32            `protobuf:"varint,1,opt,name=activity,proto3" json:"activity,omitempty"`
	BillRejected map[uint32]uint32 `` /* 188-byte string literal not displayed */
	CoinRejected map[uint32]uint32 `` /* 188-byte string literal not displayed */
	CoinSlug     uint32            `protobuf:"varint,18,opt,name=coin_slug,json=coinSlug,proto3" json:"coin_slug,omitempty"`
	// contains filtered or unexported fields
}

func (*Telemetry_Stat) Descriptor deprecated

func (*Telemetry_Stat) Descriptor() ([]byte, []int)

Deprecated: Use Telemetry_Stat.ProtoReflect.Descriptor instead.

func (*Telemetry_Stat) GetActivity

func (x *Telemetry_Stat) GetActivity() uint32

func (*Telemetry_Stat) GetBillRejected

func (x *Telemetry_Stat) GetBillRejected() map[uint32]uint32

func (*Telemetry_Stat) GetCoinRejected

func (x *Telemetry_Stat) GetCoinRejected() map[uint32]uint32

func (*Telemetry_Stat) GetCoinSlug

func (x *Telemetry_Stat) GetCoinSlug() uint32

func (*Telemetry_Stat) ProtoMessage

func (*Telemetry_Stat) ProtoMessage()

func (*Telemetry_Stat) ProtoReflect added in v0.241208.0

func (x *Telemetry_Stat) ProtoReflect() protoreflect.Message

func (*Telemetry_Stat) Reset

func (x *Telemetry_Stat) Reset()

func (*Telemetry_Stat) String

func (x *Telemetry_Stat) String() string

type Telemetry_Transaction

type Telemetry_Transaction struct {
	Code          string        `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Options       []int32       `protobuf:"varint,2,rep,packed,name=options,proto3" json:"options,omitempty"`
	Price         uint32        `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	PaymentMethod PaymentMethod `protobuf:"varint,4,opt,name=payment_method,json=paymentMethod,proto3,enum=PaymentMethod" json:"payment_method,omitempty"`
	CreditBills   uint32        `protobuf:"varint,5,opt,name=credit_bills,json=creditBills,proto3" json:"credit_bills,omitempty"`
	CreditCoins   uint32        `protobuf:"varint,6,opt,name=credit_coins,json=creditCoins,proto3" json:"credit_coins,omitempty"`
	Spent         *Inventory    `protobuf:"bytes,7,opt,name=spent,proto3" json:"spent,omitempty"`
	Executer      int64         `protobuf:"varint,8,opt,name=executer,proto3" json:"executer,omitempty"`
	// contains filtered or unexported fields
}

func (*Telemetry_Transaction) Descriptor deprecated

func (*Telemetry_Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Telemetry_Transaction.ProtoReflect.Descriptor instead.

func (*Telemetry_Transaction) GetCode

func (x *Telemetry_Transaction) GetCode() string

func (*Telemetry_Transaction) GetCreditBills

func (x *Telemetry_Transaction) GetCreditBills() uint32

func (*Telemetry_Transaction) GetCreditCoins

func (x *Telemetry_Transaction) GetCreditCoins() uint32

func (*Telemetry_Transaction) GetExecuter added in v0.210928.0

func (x *Telemetry_Transaction) GetExecuter() int64

func (*Telemetry_Transaction) GetOptions

func (x *Telemetry_Transaction) GetOptions() []int32

func (*Telemetry_Transaction) GetPaymentMethod

func (x *Telemetry_Transaction) GetPaymentMethod() PaymentMethod

func (*Telemetry_Transaction) GetPrice

func (x *Telemetry_Transaction) GetPrice() uint32

func (*Telemetry_Transaction) GetSpent

func (x *Telemetry_Transaction) GetSpent() *Inventory

func (*Telemetry_Transaction) ProtoMessage

func (*Telemetry_Transaction) ProtoMessage()

func (*Telemetry_Transaction) ProtoReflect added in v0.241208.0

func (x *Telemetry_Transaction) ProtoReflect() protoreflect.Message

func (*Telemetry_Transaction) Reset

func (x *Telemetry_Transaction) Reset()

func (*Telemetry_Transaction) String

func (x *Telemetry_Transaction) String() string

type Teler

type Teler interface {
	Init(context.Context, *log2.Log, tele_config.Config, string) error
	Close()
	// State(State)
	Error(error)
	ErrorStr(string)
	Log(string)
	StatModify(func(*Stat))
	Report(ctx context.Context, serviceTag bool) error
	Transaction(*Telemetry_Transaction)
	CommandResponse(*Response)
	RoboSend(*FromRoboMessage)
	RoboSendState(s State)
	RoboSendBroken()
	RoboConnected() bool
	GetState() State
}

Teler interface Telemetry client, vending machine side. Not for external public usage.

func NewStub

func NewStub() Teler

type ToRoboMessage added in v0.220327.0

type ToRoboMessage struct {
	Cmd        MessageType `protobuf:"varint,1,opt,name=cmd,proto3,enum=MessageType" json:"cmd,omitempty"`
	ServerTime int64       `protobuf:"varint,2,opt,name=serverTime,proto3" json:"serverTime,omitempty"`
	MakeOrder  *Order      `protobuf:"bytes,3,opt,name=makeOrder,proto3" json:"makeOrder,omitempty"`
	ShowQR     *ShowQR     `protobuf:"bytes,4,opt,name=showQR,proto3" json:"showQR,omitempty"`
	Command    string      `protobuf:"bytes,5,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

func (*ToRoboMessage) Descriptor deprecated added in v0.220327.0

func (*ToRoboMessage) Descriptor() ([]byte, []int)

Deprecated: Use ToRoboMessage.ProtoReflect.Descriptor instead.

func (*ToRoboMessage) GetCmd added in v0.220427.0

func (x *ToRoboMessage) GetCmd() MessageType

func (*ToRoboMessage) GetCommand added in v0.220709.0

func (x *ToRoboMessage) GetCommand() string

func (*ToRoboMessage) GetMakeOrder added in v0.220327.0

func (x *ToRoboMessage) GetMakeOrder() *Order

func (*ToRoboMessage) GetServerTime added in v0.220427.0

func (x *ToRoboMessage) GetServerTime() int64

func (*ToRoboMessage) GetShowQR added in v0.220329.0

func (x *ToRoboMessage) GetShowQR() *ShowQR

func (*ToRoboMessage) ProtoMessage added in v0.220327.0

func (*ToRoboMessage) ProtoMessage()

func (*ToRoboMessage) ProtoReflect added in v0.241208.0

func (x *ToRoboMessage) ProtoReflect() protoreflect.Message

func (*ToRoboMessage) Reset added in v0.220327.0

func (x *ToRoboMessage) Reset()

func (*ToRoboMessage) String added in v0.220327.0

func (x *ToRoboMessage) String() string

Directories

Path Synopsis
Telemetry client config, vending machine side.
Telemetry client config, vending machine side.

Jump to

Keyboard shortcuts

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