Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // Handle handles a CloudEvent. Handle(context.Context, cloudEvents.Event) error }
Service is an interface for components that can handle CloudEvents. Implementations of this interface are transport-agnostic.
func NewService ¶
func NewService(eventsClient sdk.EventsClient) Service
NewService returns an implementation of the Service interface for handling CloudEvents.
Click to show internal directories.
Click to hide internal directories.