(ctx context.Context)
| 146 | } |
| 147 | |
| 148 | func (g *Generator) running(ctx context.Context) error { |
| 149 | if g.cfg.ConsumeFromKafka { |
| 150 | g.startKafka() |
| 151 | } |
| 152 | |
| 153 | <-ctx.Done() |
| 154 | return nil |
| 155 | } |
| 156 | |
| 157 | func (g *Generator) stopping(_ error) error { |
| 158 | g.stopIncomingRequests() |
nothing calls this directly
no test coverage detected