Documentation ¶
Overview ¶
Package processor does the work of taking incoming events from machines and updating the machine state using that information. The goal is to move all the logic out of `skia_mobile.py` and into processor.
TODO(jcgregorio) Add support for devices beyond Android. TODO(kjlubick,jcgregorio) Use ro.build.fingerprint to catch cases where the phone manufacturuers push and update but don't rev the android version.
Package processor does the work of taking incoming events from machines and updating the machine state using that information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor interface {
Process(ctx context.Context, current machine.Description, event machine.Event) machine.Description
}
Processor does the work of taking an incoming event and updating the Machine State based on that event.
type ProcessorFunc ¶
type ProcessorFunc func(ctx context.Context, current machine.Description, event machine.Event) machine.Description
ProcessorFunc is a utility type that allows using a function as a Processor.
func (ProcessorFunc) Process ¶
func (p ProcessorFunc) Process(ctx context.Context, current machine.Description, event machine.Event) machine.Description
Process implements the Processor interface.
type ProcessorImpl ¶
type ProcessorImpl struct {
// contains filtered or unexported fields
}
ProcessorImpl implements the Processor interface.
func (*ProcessorImpl) Process ¶
func (p *ProcessorImpl) Process(ctx context.Context, previous machine.Description, event machine.Event) machine.Description
Process implements the Processor interface.