Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLocationExists = fmt.Errorf("location already exists")
ErrLocationExists is the error returned by AddLocation when the location is already being polled.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // AddLocation creates a new forecast poll job for the given location. AddLocation(ctx context.Context, city, state string) error // Subscribe subscribes to the poller service events. // Cancel the context to unsubscribe and return. Subscribe(ctx context.Context, city, state string) (<-chan *genpoller.Forecast, error) }
Client is the poller client interface.
Click to show internal directories.
Click to hide internal directories.