tele

package
v0.240615.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: CC0-1.0 Imports: 7 Imported by: 0

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",
}
View Source
var CmdReplay_value = map[string]int32{
	"nothing":  0,
	"accepted": 1,
	"done":     2,
	"busy":     3,
	"error":    4,
}
View Source
var CookReplay_name = map[int32]string{
	0: "cookNothing",
	1: "cookStart",
	2: "cookFinish",
	3: "cookInaccessible",
	4: "cookOverdraft",
	5: "cookError",
	6: "vmcbusy",
	7: "waitPay",
}
View Source
var CookReplay_value = map[string]int32{
	"cookNothing":      0,
	"cookStart":        1,
	"cookFinish":       2,
	"cookInaccessible": 3,
	"cookOverdraft":    4,
	"cookError":        5,
	"vmcbusy":          6,
	"waitPay":          7,
}
View Source
var MessageType_name = map[int32]string{
	0: "invalid",
	1: "showQR",
	2: "makeOrder",
	3: "executeCommand",
	4: "reportStock",
	5: "reportState",
}
View Source
var MessageType_value = map[string]int32{
	"invalid":        0,
	"showQR":         1,
	"makeOrder":      2,
	"executeCommand": 3,
	"reportStock":    4,
	"reportState":    5,
}
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",
}
View Source
var 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,
}
View Source
var OwnerType_name = map[int32]string{
	0: "noOwnerType",
	1: "telegramUser",
	2: "qrCashLessUser",
}
View Source
var OwnerType_value = map[string]int32{
	"noOwnerType":    0,
	"telegramUser":   1,
	"qrCashLessUser": 2,
}
View Source
var PaymentMethod_name = map[int32]string{
	0: "Nothing",
	1: "Cash",
	2: "Cashless",
	3: "Gift",
	4: "Balance",
}
View Source
var PaymentMethod_value = map[string]int32{
	"Nothing":  0,
	"Cash":     1,
	"Cashless": 2,
	"Gift":     3,
	"Balance":  4,
}
View Source
var ShowQR_QRType_name = map[int32]string{
	0: "invalid",
	1: "receipt",
	2: "order",
	3: "errorOverdraft",
	4: "error",
}
View Source
var ShowQR_QRType_value = map[string]int32{
	"invalid":        0,
	"receipt":        1,
	"order":          2,
	"errorOverdraft": 3,
	"error":          4,
}
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",
}
View Source
var 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,
}

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) EnumDescriptor

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

func (CmdReplay) String

func (x CmdReplay) String() string

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 valid to be assigned 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"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*Command) Descriptor

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

func (*Command) GetCook

func (m *Command) GetCook() *Command_ArgCook

func (*Command) GetExec

func (m *Command) GetExec() *Command_ArgExec

func (*Command) GetExecuter

func (m *Command) GetExecuter() int64

func (*Command) GetGetState added in v0.211002.0

func (m *Command) GetGetState() *Command_ArgGetState

func (*Command) GetLock

func (m *Command) GetLock() bool

func (*Command) GetReport

func (m *Command) GetReport() *Command_ArgReport

func (*Command) GetSetConfig

func (m *Command) GetSetConfig() *Command_ArgSetConfig

func (*Command) GetSetInventory

func (m *Command) GetSetInventory() *Command_ArgSetInventory

func (*Command) GetShow_QR

func (m *Command) GetShow_QR() *Command_ArgShowQR

func (*Command) GetStop

func (m *Command) GetStop() *Command_ArgSendStatus

func (*Command) GetTask

func (m *Command) GetTask() isCommand_Task

func (*Command) GetValidateCode

func (m *Command) GetValidateCode() *Command_ArgValidateCode

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command) XXX_Merge

func (m *Command) XXX_Merge(src proto.Message)

func (*Command) XXX_OneofWrappers added in v0.220315.0

func (*Command) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) XXX_Unmarshal(b []byte) error

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=tele.PaymentMethod" json:"payment_method,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Command_ArgCook) Descriptor

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

func (*Command_ArgCook) GetBalance

func (m *Command_ArgCook) GetBalance() int32

func (*Command_ArgCook) GetCream

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

func (*Command_ArgCook) GetMenucode

func (m *Command_ArgCook) GetMenucode() string

func (*Command_ArgCook) GetPaymentMethod

func (m *Command_ArgCook) GetPaymentMethod() PaymentMethod

func (*Command_ArgCook) GetSugar

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

func (*Command_ArgCook) ProtoMessage

func (*Command_ArgCook) ProtoMessage()

func (*Command_ArgCook) Reset

func (m *Command_ArgCook) Reset()

func (*Command_ArgCook) String

func (m *Command_ArgCook) String() string

func (*Command_ArgCook) XXX_DiscardUnknown

func (m *Command_ArgCook) XXX_DiscardUnknown()

func (*Command_ArgCook) XXX_Marshal

func (m *Command_ArgCook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgCook) XXX_Merge

func (m *Command_ArgCook) XXX_Merge(src proto.Message)

func (*Command_ArgCook) XXX_Size

func (m *Command_ArgCook) XXX_Size() int

func (*Command_ArgCook) XXX_Unmarshal

func (m *Command_ArgCook) XXX_Unmarshal(b []byte) error

type Command_ArgExec

type Command_ArgExec struct {
	Scenario             string   `protobuf:"bytes,1,opt,name=scenario,proto3" json:"scenario,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgExec) Descriptor

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

func (*Command_ArgExec) GetScenario

func (m *Command_ArgExec) GetScenario() string

func (*Command_ArgExec) ProtoMessage

func (*Command_ArgExec) ProtoMessage()

func (*Command_ArgExec) Reset

func (m *Command_ArgExec) Reset()

func (*Command_ArgExec) String

func (m *Command_ArgExec) String() string

func (*Command_ArgExec) XXX_DiscardUnknown

func (m *Command_ArgExec) XXX_DiscardUnknown()

func (*Command_ArgExec) XXX_Marshal

func (m *Command_ArgExec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgExec) XXX_Merge

func (m *Command_ArgExec) XXX_Merge(src proto.Message)

func (*Command_ArgExec) XXX_Size

func (m *Command_ArgExec) XXX_Size() int

func (*Command_ArgExec) XXX_Unmarshal

func (m *Command_ArgExec) XXX_Unmarshal(b []byte) error

type Command_ArgGetState added in v0.211002.0

type Command_ArgGetState struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgGetState) Descriptor added in v0.211002.0

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

func (*Command_ArgGetState) ProtoMessage added in v0.211002.0

func (*Command_ArgGetState) ProtoMessage()

func (*Command_ArgGetState) Reset added in v0.211002.0

func (m *Command_ArgGetState) Reset()

func (*Command_ArgGetState) String added in v0.211002.0

func (m *Command_ArgGetState) String() string

func (*Command_ArgGetState) XXX_DiscardUnknown added in v0.211002.0

func (m *Command_ArgGetState) XXX_DiscardUnknown()

func (*Command_ArgGetState) XXX_Marshal added in v0.211002.0

func (m *Command_ArgGetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgGetState) XXX_Merge added in v0.211002.0

func (m *Command_ArgGetState) XXX_Merge(src proto.Message)

func (*Command_ArgGetState) XXX_Size added in v0.211002.0

func (m *Command_ArgGetState) XXX_Size() int

func (*Command_ArgGetState) XXX_Unmarshal added in v0.211002.0

func (m *Command_ArgGetState) XXX_Unmarshal(b []byte) error

type Command_ArgReport

type Command_ArgReport struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgReport) Descriptor

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

func (*Command_ArgReport) ProtoMessage

func (*Command_ArgReport) ProtoMessage()

func (*Command_ArgReport) Reset

func (m *Command_ArgReport) Reset()

func (*Command_ArgReport) String

func (m *Command_ArgReport) String() string

func (*Command_ArgReport) XXX_DiscardUnknown

func (m *Command_ArgReport) XXX_DiscardUnknown()

func (*Command_ArgReport) XXX_Marshal

func (m *Command_ArgReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgReport) XXX_Merge

func (m *Command_ArgReport) XXX_Merge(src proto.Message)

func (*Command_ArgReport) XXX_Size

func (m *Command_ArgReport) XXX_Size() int

func (*Command_ArgReport) XXX_Unmarshal

func (m *Command_ArgReport) XXX_Unmarshal(b []byte) error

type Command_ArgSendStatus

type Command_ArgSendStatus struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgSendStatus) Descriptor

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

func (*Command_ArgSendStatus) ProtoMessage

func (*Command_ArgSendStatus) ProtoMessage()

func (*Command_ArgSendStatus) Reset

func (m *Command_ArgSendStatus) Reset()

func (*Command_ArgSendStatus) String

func (m *Command_ArgSendStatus) String() string

func (*Command_ArgSendStatus) XXX_DiscardUnknown

func (m *Command_ArgSendStatus) XXX_DiscardUnknown()

func (*Command_ArgSendStatus) XXX_Marshal

func (m *Command_ArgSendStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgSendStatus) XXX_Merge

func (m *Command_ArgSendStatus) XXX_Merge(src proto.Message)

func (*Command_ArgSendStatus) XXX_Size

func (m *Command_ArgSendStatus) XXX_Size() int

func (*Command_ArgSendStatus) XXX_Unmarshal

func (m *Command_ArgSendStatus) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgSetConfig) Descriptor

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

func (*Command_ArgSetConfig) GetName

func (m *Command_ArgSetConfig) GetName() string

func (*Command_ArgSetConfig) GetNew

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

func (*Command_ArgSetConfig) ProtoMessage

func (*Command_ArgSetConfig) ProtoMessage()

func (*Command_ArgSetConfig) Reset

func (m *Command_ArgSetConfig) Reset()

func (*Command_ArgSetConfig) String

func (m *Command_ArgSetConfig) String() string

func (*Command_ArgSetConfig) XXX_DiscardUnknown

func (m *Command_ArgSetConfig) XXX_DiscardUnknown()

func (*Command_ArgSetConfig) XXX_Marshal

func (m *Command_ArgSetConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgSetConfig) XXX_Merge

func (m *Command_ArgSetConfig) XXX_Merge(src proto.Message)

func (*Command_ArgSetConfig) XXX_Size

func (m *Command_ArgSetConfig) XXX_Size() int

func (*Command_ArgSetConfig) XXX_Unmarshal

func (m *Command_ArgSetConfig) XXX_Unmarshal(b []byte) error

type Command_ArgSetInventory

type Command_ArgSetInventory struct {
	New                  *Inventory `protobuf:"bytes,1,opt,name=new,proto3" json:"new,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Command_ArgSetInventory) Descriptor

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

func (*Command_ArgSetInventory) GetNew

func (m *Command_ArgSetInventory) GetNew() *Inventory

func (*Command_ArgSetInventory) ProtoMessage

func (*Command_ArgSetInventory) ProtoMessage()

func (*Command_ArgSetInventory) Reset

func (m *Command_ArgSetInventory) Reset()

func (*Command_ArgSetInventory) String

func (m *Command_ArgSetInventory) String() string

func (*Command_ArgSetInventory) XXX_DiscardUnknown

func (m *Command_ArgSetInventory) XXX_DiscardUnknown()

func (*Command_ArgSetInventory) XXX_Marshal

func (m *Command_ArgSetInventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgSetInventory) XXX_Merge

func (m *Command_ArgSetInventory) XXX_Merge(src proto.Message)

func (*Command_ArgSetInventory) XXX_Size

func (m *Command_ArgSetInventory) XXX_Size() int

func (*Command_ArgSetInventory) XXX_Unmarshal

func (m *Command_ArgSetInventory) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgShowQR) Descriptor

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

func (*Command_ArgShowQR) GetLayout

func (m *Command_ArgShowQR) GetLayout() string

func (*Command_ArgShowQR) GetQrText

func (m *Command_ArgShowQR) GetQrText() string

func (*Command_ArgShowQR) ProtoMessage

func (*Command_ArgShowQR) ProtoMessage()

func (*Command_ArgShowQR) Reset

func (m *Command_ArgShowQR) Reset()

func (*Command_ArgShowQR) String

func (m *Command_ArgShowQR) String() string

func (*Command_ArgShowQR) XXX_DiscardUnknown

func (m *Command_ArgShowQR) XXX_DiscardUnknown()

func (*Command_ArgShowQR) XXX_Marshal

func (m *Command_ArgShowQR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgShowQR) XXX_Merge

func (m *Command_ArgShowQR) XXX_Merge(src proto.Message)

func (*Command_ArgShowQR) XXX_Size

func (m *Command_ArgShowQR) XXX_Size() int

func (*Command_ArgShowQR) XXX_Unmarshal

func (m *Command_ArgShowQR) XXX_Unmarshal(b []byte) error

type Command_ArgValidateCode

type Command_ArgValidateCode struct {
	Code                 string   `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Command_ArgValidateCode) Descriptor

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

func (*Command_ArgValidateCode) GetCode

func (m *Command_ArgValidateCode) GetCode() string

func (*Command_ArgValidateCode) ProtoMessage

func (*Command_ArgValidateCode) ProtoMessage()

func (*Command_ArgValidateCode) Reset

func (m *Command_ArgValidateCode) Reset()

func (*Command_ArgValidateCode) String

func (m *Command_ArgValidateCode) String() string

func (*Command_ArgValidateCode) XXX_DiscardUnknown

func (m *Command_ArgValidateCode) XXX_DiscardUnknown()

func (*Command_ArgValidateCode) XXX_Marshal

func (m *Command_ArgValidateCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Command_ArgValidateCode) XXX_Merge

func (m *Command_ArgValidateCode) XXX_Merge(src proto.Message)

func (*Command_ArgValidateCode) XXX_Size

func (m *Command_ArgValidateCode) XXX_Size() int

func (*Command_ArgValidateCode) XXX_Unmarshal

func (m *Command_ArgValidateCode) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

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

func (CookReplay) String

func (x CookReplay) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Err) Descriptor added in v0.220329.0

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

func (*Err) GetCode added in v0.220329.0

func (m *Err) GetCode() uint32

func (*Err) GetMessage added in v0.220329.0

func (m *Err) GetMessage() string

func (*Err) ProtoMessage added in v0.220329.0

func (*Err) ProtoMessage()

func (*Err) Reset added in v0.220329.0

func (m *Err) Reset()

func (*Err) String added in v0.220329.0

func (m *Err) String() string

func (*Err) XXX_DiscardUnknown added in v0.220329.0

func (m *Err) XXX_DiscardUnknown()

func (*Err) XXX_Marshal added in v0.220329.0

func (m *Err) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Err) XXX_Merge added in v0.220329.0

func (m *Err) XXX_Merge(src proto.Message)

func (*Err) XXX_Size added in v0.220329.0

func (m *Err) XXX_Size() int

func (*Err) XXX_Unmarshal added in v0.220329.0

func (m *Err) XXX_Unmarshal(b []byte) error

type FromRoboMessage added in v0.220327.0

type FromRoboMessage struct {
	State                State         `protobuf:"varint,1,opt,name=state,proto3,enum=tele.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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*FromRoboMessage) Descriptor added in v0.220327.0

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

func (*FromRoboMessage) GetErr added in v0.220329.0

func (m *FromRoboMessage) GetErr() *Err

func (*FromRoboMessage) GetOrder added in v0.220327.0

func (m *FromRoboMessage) GetOrder() *Order

func (*FromRoboMessage) GetRoboHardware added in v0.220427.0

func (m *FromRoboMessage) GetRoboHardware() *RoboHardware

func (*FromRoboMessage) GetRoboTime added in v0.220427.0

func (m *FromRoboMessage) GetRoboTime() int64

func (*FromRoboMessage) GetState added in v0.220327.0

func (m *FromRoboMessage) GetState() State

func (*FromRoboMessage) GetStock added in v0.220622.1

func (m *FromRoboMessage) GetStock() *Stock

func (*FromRoboMessage) ProtoMessage added in v0.220327.0

func (*FromRoboMessage) ProtoMessage()

func (*FromRoboMessage) Reset added in v0.220327.0

func (m *FromRoboMessage) Reset()

func (*FromRoboMessage) String added in v0.220327.0

func (m *FromRoboMessage) String() string

func (*FromRoboMessage) XXX_DiscardUnknown added in v0.220327.0

func (m *FromRoboMessage) XXX_DiscardUnknown()

func (*FromRoboMessage) XXX_Marshal added in v0.220327.0

func (m *FromRoboMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FromRoboMessage) XXX_Merge added in v0.220327.0

func (m *FromRoboMessage) XXX_Merge(src proto.Message)

func (*FromRoboMessage) XXX_Size added in v0.220327.0

func (m *FromRoboMessage) XXX_Size() int

func (*FromRoboMessage) XXX_Unmarshal added in v0.220327.0

func (m *FromRoboMessage) XXX_Unmarshal(b []byte) error

type Inventory

type Inventory struct {
	Stocks               []*Inventory_StockItem `protobuf:"bytes,1,rep,name=stocks,proto3" json:"stocks,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Inventory) Descriptor

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

func (*Inventory) GetStocks

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

func (*Inventory) ProtoMessage

func (*Inventory) ProtoMessage()

func (*Inventory) Reset

func (m *Inventory) Reset()

func (*Inventory) String

func (m *Inventory) String() string

func (*Inventory) XXX_DiscardUnknown

func (m *Inventory) XXX_DiscardUnknown()

func (*Inventory) XXX_Marshal

func (m *Inventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Inventory) XXX_Merge

func (m *Inventory) XXX_Merge(src proto.Message)

func (*Inventory) XXX_Size

func (m *Inventory) XXX_Size() int

func (*Inventory) XXX_Unmarshal

func (m *Inventory) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Inventory_StockItem) Descriptor

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

func (*Inventory_StockItem) GetCode

func (m *Inventory_StockItem) GetCode() uint32

func (*Inventory_StockItem) GetHopper

func (m *Inventory_StockItem) GetHopper() int32

func (*Inventory_StockItem) GetName

func (m *Inventory_StockItem) GetName() string

func (*Inventory_StockItem) GetValue

func (m *Inventory_StockItem) GetValue() int32

func (*Inventory_StockItem) GetValuef

func (m *Inventory_StockItem) GetValuef() float32

func (*Inventory_StockItem) ProtoMessage

func (*Inventory_StockItem) ProtoMessage()

func (*Inventory_StockItem) Reset

func (m *Inventory_StockItem) Reset()

func (*Inventory_StockItem) String

func (m *Inventory_StockItem) String() string

func (*Inventory_StockItem) XXX_DiscardUnknown

func (m *Inventory_StockItem) XXX_DiscardUnknown()

func (*Inventory_StockItem) XXX_Marshal

func (m *Inventory_StockItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Inventory_StockItem) XXX_Merge

func (m *Inventory_StockItem) XXX_Merge(src proto.Message)

func (*Inventory_StockItem) XXX_Size

func (m *Inventory_StockItem) XXX_Size() int

func (*Inventory_StockItem) XXX_Unmarshal

func (m *Inventory_StockItem) XXX_Unmarshal(b []byte) error

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) EnumDescriptor added in v0.220427.0

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

func (MessageType) String added in v0.220427.0

func (x MessageType) String() string

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"`
	Sugar                []byte        `protobuf:"bytes,3,opt,name=sugar,proto3" json:"sugar,omitempty"`
	Amount               uint32        `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	OrderStatus          OrderStatus   `protobuf:"varint,6,opt,name=orderStatus,proto3,enum=tele.OrderStatus" json:"orderStatus,omitempty"`
	PaymentMethod        PaymentMethod `protobuf:"varint,7,opt,name=paymentMethod,proto3,enum=tele.PaymentMethod" json:"paymentMethod,omitempty"`
	OwnerInt             int64         `protobuf:"varint,8,opt,name=ownerInt,proto3" json:"ownerInt,omitempty"`
	OwnerStr             string        `protobuf:"bytes,9,opt,name=ownerStr,proto3" json:"ownerStr,omitempty"`
	OwnerType            OwnerType     `protobuf:"varint,10,opt,name=ownerType,proto3,enum=tele.OwnerType" json:"ownerType,omitempty"`
	RedirectDueDate      int64         `protobuf:"varint,11,opt,name=redirectDueDate,proto3" json:"redirectDueDate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Order) Descriptor added in v0.220327.0

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

func (*Order) GetAmount added in v0.220327.0

func (m *Order) GetAmount() uint32

func (*Order) GetCream added in v0.220327.0

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

func (*Order) GetMenuCode added in v0.220327.0

func (m *Order) GetMenuCode() string

func (*Order) GetOrderStatus added in v0.220327.0

func (m *Order) GetOrderStatus() OrderStatus

func (*Order) GetOwnerInt added in v0.220327.0

func (m *Order) GetOwnerInt() int64

func (*Order) GetOwnerStr added in v0.220327.0

func (m *Order) GetOwnerStr() string

func (*Order) GetOwnerType added in v0.220327.0

func (m *Order) GetOwnerType() OwnerType

func (*Order) GetPaymentMethod added in v0.220327.0

func (m *Order) GetPaymentMethod() PaymentMethod

func (*Order) GetRedirectDueDate added in v0.220327.0

func (m *Order) GetRedirectDueDate() int64

func (*Order) GetSugar added in v0.220327.0

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

func (*Order) ProtoMessage added in v0.220327.0

func (*Order) ProtoMessage()

func (*Order) Reset added in v0.220327.0

func (m *Order) Reset()

func (*Order) String added in v0.220327.0

func (m *Order) String() string

func (*Order) XXX_DiscardUnknown added in v0.220327.0

func (m *Order) XXX_DiscardUnknown()

func (*Order) XXX_Marshal added in v0.220327.0

func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Order) XXX_Merge added in v0.220327.0

func (m *Order) XXX_Merge(src proto.Message)

func (*Order) XXX_Size added in v0.220327.0

func (m *Order) XXX_Size() int

func (*Order) XXX_Unmarshal added in v0.220327.0

func (m *Order) XXX_Unmarshal(b []byte) error

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) EnumDescriptor added in v0.220327.0

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

func (OrderStatus) String added in v0.220327.0

func (x OrderStatus) String() string

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) EnumDescriptor added in v0.220327.0

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

func (OwnerType) String added in v0.220327.0

func (x OwnerType) String() string

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) EnumDescriptor

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

func (PaymentMethod) String

func (x PaymentMethod) String() string

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=tele.CmdReplay" json:"cmd_replay,omitempty"`
	CookReplay           CookReplay `protobuf:"varint,6,opt,name=cook_replay,json=cookReplay,proto3,enum=tele.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"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetCmdReplay

func (m *Response) GetCmdReplay() CmdReplay

func (*Response) GetCookReplay

func (m *Response) GetCookReplay() CookReplay

func (*Response) GetData

func (m *Response) GetData() string

func (*Response) GetError

func (m *Response) GetError() string

func (*Response) GetExecuter

func (m *Response) GetExecuter() int64

func (*Response) GetINTERNALTopic

func (m *Response) GetINTERNALTopic() string

func (*Response) GetValidateReplay

func (m *Response) GetValidateReplay() uint32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

func (*Response) XXX_DiscardUnknown

func (m *Response) XXX_DiscardUnknown()

func (*Response) XXX_Marshal

func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Response) XXX_Merge

func (m *Response) XXX_Merge(src proto.Message)

func (*Response) XXX_Size

func (m *Response) XXX_Size() int

func (*Response) XXX_Unmarshal

func (m *Response) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RoboHardware) Descriptor added in v0.220427.0

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

func (*RoboHardware) GetSwVersion added in v0.220709.0

func (m *RoboHardware) GetSwVersion() string

func (*RoboHardware) GetTemperature added in v0.220427.0

func (m *RoboHardware) GetTemperature() int32

func (*RoboHardware) ProtoMessage added in v0.220427.0

func (*RoboHardware) ProtoMessage()

func (*RoboHardware) Reset added in v0.220427.0

func (m *RoboHardware) Reset()

func (*RoboHardware) String added in v0.220427.0

func (m *RoboHardware) String() string

func (*RoboHardware) XXX_DiscardUnknown added in v0.220427.0

func (m *RoboHardware) XXX_DiscardUnknown()

func (*RoboHardware) XXX_Marshal added in v0.220427.0

func (m *RoboHardware) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RoboHardware) XXX_Merge added in v0.220427.0

func (m *RoboHardware) XXX_Merge(src proto.Message)

func (*RoboHardware) XXX_Size added in v0.220427.0

func (m *RoboHardware) XXX_Size() int

func (*RoboHardware) XXX_Unmarshal added in v0.220427.0

func (m *RoboHardware) XXX_Unmarshal(b []byte) error

type ShowQR added in v0.220329.0

type ShowQR struct {
	QrType               ShowQR_QRType `protobuf:"varint,1,opt,name=qrType,proto3,enum=tele.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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ShowQR) Descriptor added in v0.220329.0

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

func (*ShowQR) GetDataInt added in v0.220427.0

func (m *ShowQR) GetDataInt() int32

func (*ShowQR) GetDataStr added in v0.220427.0

func (m *ShowQR) GetDataStr() string

func (*ShowQR) GetQrText added in v0.220329.0

func (m *ShowQR) GetQrText() string

func (*ShowQR) GetQrType added in v0.220329.0

func (m *ShowQR) GetQrType() ShowQR_QRType

func (*ShowQR) ProtoMessage added in v0.220329.0

func (*ShowQR) ProtoMessage()

func (*ShowQR) Reset added in v0.220329.0

func (m *ShowQR) Reset()

func (*ShowQR) String added in v0.220329.0

func (m *ShowQR) String() string

func (*ShowQR) XXX_DiscardUnknown added in v0.220329.0

func (m *ShowQR) XXX_DiscardUnknown()

func (*ShowQR) XXX_Marshal added in v0.220329.0

func (m *ShowQR) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ShowQR) XXX_Merge added in v0.220329.0

func (m *ShowQR) XXX_Merge(src proto.Message)

func (*ShowQR) XXX_Size added in v0.220329.0

func (m *ShowQR) XXX_Size() int

func (*ShowQR) XXX_Unmarshal added in v0.220329.0

func (m *ShowQR) XXX_Unmarshal(b []byte) error

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) EnumDescriptor added in v0.220427.0

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

func (ShowQR_QRType) String added in v0.220427.0

func (x ShowQR_QRType) String() string

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) EnumDescriptor

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

func (State) String

func (x State) String() string

type Stock added in v0.220622.1

type Stock struct {
	Stocks               []*Stock_StockItem `protobuf:"bytes,1,rep,name=stocks,proto3" json:"stocks,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Stock) Descriptor added in v0.220622.1

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

func (*Stock) GetStocks added in v0.220622.1

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

func (*Stock) ProtoMessage added in v0.220622.1

func (*Stock) ProtoMessage()

func (*Stock) Reset added in v0.220622.1

func (m *Stock) Reset()

func (*Stock) String added in v0.220622.1

func (m *Stock) String() string

func (*Stock) XXX_DiscardUnknown added in v0.220622.1

func (m *Stock) XXX_DiscardUnknown()

func (*Stock) XXX_Marshal added in v0.220622.1

func (m *Stock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stock) XXX_Merge added in v0.220622.1

func (m *Stock) XXX_Merge(src proto.Message)

func (*Stock) XXX_Size added in v0.220622.1

func (m *Stock) XXX_Size() int

func (*Stock) XXX_Unmarshal added in v0.220622.1

func (m *Stock) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Stock_StockItem) Descriptor added in v0.220622.1

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

func (*Stock_StockItem) GetCode added in v0.220622.1

func (m *Stock_StockItem) GetCode() uint32

func (*Stock_StockItem) GetValue added in v0.220622.1

func (m *Stock_StockItem) GetValue() int32

func (*Stock_StockItem) ProtoMessage added in v0.220622.1

func (*Stock_StockItem) ProtoMessage()

func (*Stock_StockItem) Reset added in v0.220622.1

func (m *Stock_StockItem) Reset()

func (*Stock_StockItem) String added in v0.220622.1

func (m *Stock_StockItem) String() string

func (*Stock_StockItem) XXX_DiscardUnknown added in v0.220622.1

func (m *Stock_StockItem) XXX_DiscardUnknown()

func (*Stock_StockItem) XXX_Marshal added in v0.220622.1

func (m *Stock_StockItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stock_StockItem) XXX_Merge added in v0.220622.1

func (m *Stock_StockItem) XXX_Merge(src proto.Message)

func (*Stock_StockItem) XXX_Size added in v0.220622.1

func (m *Stock_StockItem) XXX_Size() int

func (*Stock_StockItem) XXX_Unmarshal added in v0.220622.1

func (m *Stock_StockItem) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*Telemetry) Descriptor

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

func (*Telemetry) GetAtService

func (m *Telemetry) GetAtService() bool

func (*Telemetry) GetError

func (m *Telemetry) GetError() *Telemetry_Error

func (*Telemetry) GetInventory

func (m *Telemetry) GetInventory() *Inventory

func (*Telemetry) GetMoneyCashbox

func (m *Telemetry) GetMoneyCashbox() *Telemetry_Money

func (*Telemetry) GetMoneyChange

func (m *Telemetry) GetMoneyChange() *Telemetry_Money

func (*Telemetry) GetMoneySave

func (m *Telemetry) GetMoneySave() *Telemetry_Money

func (*Telemetry) GetStat

func (m *Telemetry) GetStat() *Telemetry_Stat

func (*Telemetry) GetTime

func (m *Telemetry) GetTime() int64

func (*Telemetry) GetTransaction

func (m *Telemetry) GetTransaction() *Telemetry_Transaction

func (*Telemetry) GetVmId

func (m *Telemetry) GetVmId() int32

func (*Telemetry) ProtoMessage

func (*Telemetry) ProtoMessage()

func (*Telemetry) Reset

func (m *Telemetry) Reset()

func (*Telemetry) String

func (m *Telemetry) String() string

func (*Telemetry) XXX_DiscardUnknown

func (m *Telemetry) XXX_DiscardUnknown()

func (*Telemetry) XXX_Marshal

func (m *Telemetry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Telemetry) XXX_Merge

func (m *Telemetry) XXX_Merge(src proto.Message)

func (*Telemetry) XXX_Size

func (m *Telemetry) XXX_Size() int

func (*Telemetry) XXX_Unmarshal

func (m *Telemetry) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Telemetry_Error) Descriptor

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

func (*Telemetry_Error) GetCode

func (m *Telemetry_Error) GetCode() uint32

func (*Telemetry_Error) GetCount

func (m *Telemetry_Error) GetCount() uint32

func (*Telemetry_Error) GetMessage

func (m *Telemetry_Error) GetMessage() string

func (*Telemetry_Error) ProtoMessage

func (*Telemetry_Error) ProtoMessage()

func (*Telemetry_Error) Reset

func (m *Telemetry_Error) Reset()

func (*Telemetry_Error) String

func (m *Telemetry_Error) String() string

func (*Telemetry_Error) XXX_DiscardUnknown

func (m *Telemetry_Error) XXX_DiscardUnknown()

func (*Telemetry_Error) XXX_Marshal

func (m *Telemetry_Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Telemetry_Error) XXX_Merge

func (m *Telemetry_Error) XXX_Merge(src proto.Message)

func (*Telemetry_Error) XXX_Size

func (m *Telemetry_Error) XXX_Size() int

func (*Telemetry_Error) XXX_Unmarshal

func (m *Telemetry_Error) XXX_Unmarshal(b []byte) error

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 */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Telemetry_Money) Descriptor

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

func (*Telemetry_Money) GetBills

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

func (*Telemetry_Money) GetCoins

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

func (*Telemetry_Money) GetTotalBills

func (m *Telemetry_Money) GetTotalBills() uint32

func (*Telemetry_Money) GetTotalCoins

func (m *Telemetry_Money) GetTotalCoins() uint32

func (*Telemetry_Money) ProtoMessage

func (*Telemetry_Money) ProtoMessage()

func (*Telemetry_Money) Reset

func (m *Telemetry_Money) Reset()

func (*Telemetry_Money) String

func (m *Telemetry_Money) String() string

func (*Telemetry_Money) XXX_DiscardUnknown

func (m *Telemetry_Money) XXX_DiscardUnknown()

func (*Telemetry_Money) XXX_Marshal

func (m *Telemetry_Money) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Telemetry_Money) XXX_Merge

func (m *Telemetry_Money) XXX_Merge(src proto.Message)

func (*Telemetry_Money) XXX_Size

func (m *Telemetry_Money) XXX_Size() int

func (*Telemetry_Money) XXX_Unmarshal

func (m *Telemetry_Money) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Telemetry_Stat) Descriptor

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

func (*Telemetry_Stat) GetActivity

func (m *Telemetry_Stat) GetActivity() uint32

func (*Telemetry_Stat) GetBillRejected

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

func (*Telemetry_Stat) GetCoinRejected

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

func (*Telemetry_Stat) GetCoinSlug

func (m *Telemetry_Stat) GetCoinSlug() uint32

func (*Telemetry_Stat) ProtoMessage

func (*Telemetry_Stat) ProtoMessage()

func (*Telemetry_Stat) Reset

func (m *Telemetry_Stat) Reset()

func (*Telemetry_Stat) String

func (m *Telemetry_Stat) String() string

func (*Telemetry_Stat) XXX_DiscardUnknown

func (m *Telemetry_Stat) XXX_DiscardUnknown()

func (*Telemetry_Stat) XXX_Marshal

func (m *Telemetry_Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Telemetry_Stat) XXX_Merge

func (m *Telemetry_Stat) XXX_Merge(src proto.Message)

func (*Telemetry_Stat) XXX_Size

func (m *Telemetry_Stat) XXX_Size() int

func (*Telemetry_Stat) XXX_Unmarshal

func (m *Telemetry_Stat) XXX_Unmarshal(b []byte) error

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=tele.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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*Telemetry_Transaction) Descriptor

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

func (*Telemetry_Transaction) GetCode

func (m *Telemetry_Transaction) GetCode() string

func (*Telemetry_Transaction) GetCreditBills

func (m *Telemetry_Transaction) GetCreditBills() uint32

func (*Telemetry_Transaction) GetCreditCoins

func (m *Telemetry_Transaction) GetCreditCoins() uint32

func (*Telemetry_Transaction) GetExecuter added in v0.210928.0

func (m *Telemetry_Transaction) GetExecuter() int64

func (*Telemetry_Transaction) GetOptions

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

func (*Telemetry_Transaction) GetPaymentMethod

func (m *Telemetry_Transaction) GetPaymentMethod() PaymentMethod

func (*Telemetry_Transaction) GetPrice

func (m *Telemetry_Transaction) GetPrice() uint32

func (*Telemetry_Transaction) GetSpent

func (m *Telemetry_Transaction) GetSpent() *Inventory

func (*Telemetry_Transaction) ProtoMessage

func (*Telemetry_Transaction) ProtoMessage()

func (*Telemetry_Transaction) Reset

func (m *Telemetry_Transaction) Reset()

func (*Telemetry_Transaction) String

func (m *Telemetry_Transaction) String() string

func (*Telemetry_Transaction) XXX_DiscardUnknown

func (m *Telemetry_Transaction) XXX_DiscardUnknown()

func (*Telemetry_Transaction) XXX_Marshal

func (m *Telemetry_Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Telemetry_Transaction) XXX_Merge

func (m *Telemetry_Transaction) XXX_Merge(src proto.Message)

func (*Telemetry_Transaction) XXX_Size

func (m *Telemetry_Transaction) XXX_Size() int

func (*Telemetry_Transaction) XXX_Unmarshal

func (m *Telemetry_Transaction) XXX_Unmarshal(b []byte) error

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=tele.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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*ToRoboMessage) Descriptor added in v0.220327.0

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

func (*ToRoboMessage) GetCmd added in v0.220427.0

func (m *ToRoboMessage) GetCmd() MessageType

func (*ToRoboMessage) GetCommand added in v0.220709.0

func (m *ToRoboMessage) GetCommand() string

func (*ToRoboMessage) GetMakeOrder added in v0.220327.0

func (m *ToRoboMessage) GetMakeOrder() *Order

func (*ToRoboMessage) GetServerTime added in v0.220427.0

func (m *ToRoboMessage) GetServerTime() int64

func (*ToRoboMessage) GetShowQR added in v0.220329.0

func (m *ToRoboMessage) GetShowQR() *ShowQR

func (*ToRoboMessage) ProtoMessage added in v0.220327.0

func (*ToRoboMessage) ProtoMessage()

func (*ToRoboMessage) Reset added in v0.220327.0

func (m *ToRoboMessage) Reset()

func (*ToRoboMessage) String added in v0.220327.0

func (m *ToRoboMessage) String() string

func (*ToRoboMessage) XXX_DiscardUnknown added in v0.220327.0

func (m *ToRoboMessage) XXX_DiscardUnknown()

func (*ToRoboMessage) XXX_Marshal added in v0.220327.0

func (m *ToRoboMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ToRoboMessage) XXX_Merge added in v0.220327.0

func (m *ToRoboMessage) XXX_Merge(src proto.Message)

func (*ToRoboMessage) XXX_Size added in v0.220327.0

func (m *ToRoboMessage) XXX_Size() int

func (*ToRoboMessage) XXX_Unmarshal added in v0.220327.0

func (m *ToRoboMessage) XXX_Unmarshal(b []byte) error

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