RegisterProcessor registers a stream processor for media-types
(handler Handler)
| 42 | |
| 43 | // RegisterProcessor registers a stream processor for media-types |
| 44 | func RegisterProcessor(handler Handler) { |
| 45 | handlers = append(handlers, handler) |
| 46 | } |
| 47 | |
| 48 | // GetProcessor returns the processor for a media-type |
| 49 | func GetProcessor(ctx context.Context, stream StreamProcessor, payloads map[string]typeurl.Any) (StreamProcessor, error) { |