Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultStore ¶
type DefaultStore struct {
// contains filtered or unexported fields
}
DefaultStore is a default implementation of the Store interface.
func NewStore ¶
func NewStore(rc *redis.Client) (*DefaultStore, error)
NewStore returns a new DefaultStore.
type GoTime ¶
type GoTime struct {
// contains filtered or unexported fields
}
GoTime tracks when it's Go Time!
func New ¶
func New(s Store, c *http.Client, logger zerolog.Logger, startTimeVariance time.Duration, notify NotifyFunc) (*GoTime, error)
New constructs a *GoTime.
startTimeVariance sets the window around the stream's start time when a live steam will be considered a GoTime live stream. This is necessary because the current changelog APIs return whether any show is streaming rather thahn GoTime specifically.
notify is called when streaming starts. notify should return true when a successful.
type NotifyFunc ¶
NotifyFunc represents the function signature the poller notifies on a new item. If error is not nil, the item will be retried at some point in the future.