Documentation
¶
Index ¶
- type Model
- func (model *Model) Close()
- func (model *Model) GetESCLScanCaps() *escl.ScannerCapabilities
- func (model *Model) GetIPPPrinterAttrs() *ipp.PrinterAttributes
- func (model *Model) Load(file string) error
- func (model *Model) NewESCLServer(scanner abstract.Scanner) *escl.AbstractServer
- func (model *Model) Read(filename string, r io.Reader) error
- func (model *Model) Reset() error
- func (model *Model) Save(file string) error
- func (model *Model) SetESCLScanCaps(caps *escl.ScannerCapabilities)
- func (model *Model) SetIPPPrinterAttrs(attrs *ipp.PrinterAttributes)
- func (model *Model) Write(w io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model defines the whole characteristics of the MFP device being modeled, including the IPP printer attributes, eSCL and WSD scanner capabilities, scripting hooks, used to modify device behavior and the Python interpreter instance, used to execute these hooks.
func NewModel ¶
NewModel creates a new Model with empty printer/scanner parameters. Use Model.Close to release resources owned by the Model.
func (*Model) Close ¶
func (model *Model) Close()
Close closes the Model and releases all resources associated with it.
func (*Model) GetESCLScanCaps ¶
func (model *Model) GetESCLScanCaps() *escl.ScannerCapabilities
GetESCLScanCaps returns the escl.ScannerCapabilities.
func (*Model) GetIPPPrinterAttrs ¶
func (model *Model) GetIPPPrinterAttrs() *ipp.PrinterAttributes
GetIPPPrinterAttrs returns the escl.ScannerCapabilities.
func (*Model) NewESCLServer ¶
func (model *Model) NewESCLServer( scanner abstract.Scanner) *escl.AbstractServer
NewESCLServer creates a virtual eSCL server on a top of the existent abstract.Scanner implementation.
It will return nil, if model doesn't have the eSCL scanner capabilities.
func (*Model) Read ¶
Read reads model from the io.Reader The filename parameter required for the diagnostics messages.
func (*Model) SetESCLScanCaps ¶
func (model *Model) SetESCLScanCaps(caps *escl.ScannerCapabilities)
SetESCLScanCaps sets the escl.ScannerCapabilities.
func (*Model) SetIPPPrinterAttrs ¶
func (model *Model) SetIPPPrinterAttrs(attrs *ipp.PrinterAttributes)
SetIPPPrinterAttrs sets the escl.ScannerCapabilities.