PubSub with Go Cloud backend.
| 54 | |
| 55 | // PubSub with Go Cloud backend. |
| 56 | type PubSub struct { |
| 57 | events.PubSub |
| 58 | |
| 59 | taskStarter task.Starter |
| 60 | ctx context.Context |
| 61 | cancel context.CancelFunc |
| 62 | contentType string |
| 63 | subURL string |
| 64 | topic *pubsub.Topic |
| 65 | subOnce sync.Once |
| 66 | } |
| 67 | |
| 68 | // Close the Go Cloud publisher. |
| 69 | func (ps *PubSub) Close(ctx context.Context) error { |
nothing calls this directly
no outgoing calls
no test coverage detected