Documentation
¶
Index ¶
- func Find(ctx context.Context) (chan *Printer, error)
- type Client
- func (c *Client) JobAttributes(ctx context.Context, job int) (*JobAttributes, error)
- func (c *Client) PrintJob(ctx context.Context, filename, mime string, reader io.Reader) (int, error)
- func (c *Client) PrintJobFile(ctx context.Context, filename, mime string) (int, error)
- func (c *Client) PrinterAttributes(ctx context.Context) (*PrinterAttributes, error)
- func (c *Client) SendRequest(ctx context.Context, in *goipp.Message, payload io.Reader) (*goipp.Message, error)
- func (c *Client) WatchJobState(ctx context.Context, job int, state chan<- JobState) func() error
- func (c *Client) WatchPrinterState(ctx context.Context, state chan<- PrinterState) func() error
- type JobAttributes
- type JobState
- type Printer
- type PrinterAttributes
- type PrinterState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) JobAttributes ¶
func (*Client) PrintJobFile ¶
func (*Client) PrinterAttributes ¶
func (c *Client) PrinterAttributes(ctx context.Context) (*PrinterAttributes, error)
func (*Client) SendRequest ¶
func (*Client) WatchJobState ¶
func (*Client) WatchPrinterState ¶
func (c *Client) WatchPrinterState(ctx context.Context, state chan<- PrinterState) func() error
type JobAttributes ¶
type Printer ¶
type Printer struct {
Name string
State PrinterState
URI string
}
func ParseFindEntry ¶
func ParseFindEntry(entry *zeroconf.ServiceEntry) *Printer
type PrinterAttributes ¶
type PrinterState ¶
type PrinterState int
const ( PrinterIdle PrinterState = 3 PrinterProcessing PrinterState = 4 PrinterStopped PrinterState = 5 )
func (PrinterState) String ¶
func (s PrinterState) String() string
Click to show internal directories.
Click to hide internal directories.