Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPagerCommand = "less" DefaultPagerEnvironment = []string{"LESS=FRX", "LV=-c"} )
Parameters for external Pager program:
Functions ¶
func PathUserConfDir ¶
PathUserConfDir returns user configuration directory for the program
Types ¶
type Pager ¶
type Pager struct {
// contains filtered or unexported fields
}
Pager scrolls potentially large text in a terminal.
Implements io.Writer interface.
type Runner ¶
type Runner struct {
CUPSPort int // CUPS server port, 0 if none
ESCLPort int // eSCL server port, 0 if none
ESCLPath string // Path part of the eSCL URL
ESCLName string // eSCL scanner name (will be visible as SANE name)
}
Runner runs external program in the environment, where interactions with CUPS and the eSCL scanner are redirected to the specified ports and can be intercepted.
It does its work by setting the following environment variables:
- CUPS_SERVER=localhost:port
- SANE_AIRSCAN_DEVICE=escl:Scanner Name:http://localhost:port/eSCL
In the context of the program being executed, these variables are interpreted by the libcups.so and sane-airscan, respectively.
This is used by the mfp-proxy and mfp-virtual commands.
Click to show internal directories.
Click to hide internal directories.