(ctx context.Context, since time.Time)
| 207 | } |
| 208 | |
| 209 | func (c *LongPollClient) Start(ctx context.Context, since time.Time) chan Event { |
| 210 | c.logger.Infof("starting polling client") |
| 211 | c.c = make(chan Event) |
| 212 | c.since = since.Unix() * 1000 |
| 213 | c.timeout = "45" |
| 214 | c.t = tomb.Tomb{} |
| 215 | c.t.Go(func() error { return c.pollEvents(ctx) }) |
| 216 | return c.c |
| 217 | } |
| 218 | |
| 219 | func (c *LongPollClient) Stop() error { |
| 220 | c.t.Kill(nil) |
nothing calls this directly
no test coverage detected