query

package
v0.0.0-...-cc1537b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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