query

package
v0.0.0-...-edd75a9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Password string = "printer"
View Source
var Username string = "boca"

Functions

func LoadURL

func LoadURL(url string) (*html.Node, error)

Types

type PrinterMaintenanceStatus

type PrinterMaintenanceStatus string

type PrinterStatus

type PrinterStatus struct {
	TicketCount int  `json:"ticket_count"`
	Ready       bool `json:"ready"`
	PaperOut    bool `json:"paper_out"`
	PaperLow    bool `json:"paper_low"`
	PaperJam    bool `json:"paper_jam"`
	CutterJam   bool `json:"cutter_jam"`
}

func FetchStatus

func FetchStatus(ip string) (*PrinterStatus, error)

func NewPrinterStatus

func NewPrinterStatus() *PrinterStatus

func (*PrinterStatus) GetIntStatus

func (p *PrinterStatus) GetIntStatus() int

func (*PrinterStatus) String

func (ps *PrinterStatus) String() string

func (*PrinterStatus) ToJson

func (ps *PrinterStatus) ToJson() string

Jump to

Keyboard shortcuts

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