blob: 1e15b2743d928882ad6f8a7dde6d9d8ffd74f41c [file] [log] [blame]
package source
import (
"context"
"go.skia.org/infra/machine/go/machine"
)
// Source provides a channel of machine.Events, implemented by using PubSub
// events sent by each machine.
//
// Note that machines should only send updates if state or dimensions has
// actually changed.
type Source interface {
// Start the process of receiving events.
Start(ctx context.Context) (<-chan machine.Event, error)
}