()
| 37 | } |
| 38 | |
| 39 | func ExampleNewPublisher() { |
| 40 | hostname, _ := os.Hostname() |
| 41 | p := pgq.NewPublisher(db, |
| 42 | pgq.WithMetaInjectors( |
| 43 | pgq.StaticMetaInjector(pgq.Metadata{"publisher-id": hostname}), |
| 44 | ), |
| 45 | ) |
| 46 | _ = p |
| 47 | } |
nothing calls this directly
no test coverage detected