Publisher defines an interface on which the Docker lib publishes asynchronous events, such as logs or stats.
| 5 | // Publisher defines an interface on which the Docker lib publishes asynchronous events, such as |
| 6 | // logs or stats. |
| 7 | type Publisher[T any] interface { |
| 8 | Publish(context.Context, T) error |
| 9 | } |
| 10 | |
| 11 | // FuncPublisher wraps a plain func as a Publisher. |
| 12 | type FuncPublisher[T any] func(context.Context, T) error |
no outgoing calls
no test coverage detected