Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { // PubsubEvents is the CloudEvents Pubsub protocol to pull // messages as events. PubsubEvents *pubsub.Protocol // Processor is the processor to process events. Processor processors.Interface // Timeout is the timeout for processing each individual event. Timeout time.Duration // Concurrency is the number of goroutines that will // concurrently process events. If not positive, will fall back // to 1. Concurrency int // contains filtered or unexported fields }
Handler pulls Pubsub messages as events and processes them with chain of processors.
Click to show internal directories.
Click to hide internal directories.