]> git.giacomolli.uk - onehouse/blob - driver/driver.go
Publish typed values with bounded repeat timing
[onehouse] / driver / driver.go
1 package driver
2
3 import "context"
4
5 // Driver owns one integration. Run returns its failures without logging and
6 // stops on cancellation. Refresh requests a snapshot after broker reconnect.
7 // Refresh must be safe during Run and must not block the caller.
8 type Driver interface {
9 Run(ctx context.Context) error
10 Refresh()
11 }