Documentation ¶
Index ¶
- Constants
- func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ...) adapter.Adapter
- func NewCloudEventsClient(port int) (cloudevents.Client, error)
- func NewEnvConfig() adapter.EnvConfigAccessor
- func WithReadinessMiddleware(next http.Handler) http.Handler
- type AdapterEnvConfigAccessor
Constants ¶
View Source
const ( ErrorResponseCEVersionUnsupported = "unsupported cloudevents version" ErrorResponseSendToSinkFailed = "unable to forward event to sink" )
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(ctx context.Context, processed adapter.EnvConfigAccessor, ceClient cloudevents.Client, reporter source.StatsReporter) adapter.Adapter
func NewCloudEventsClient ¶
func NewCloudEventsClient(port int) (cloudevents.Client, error)
NewCloudEventsClient creates a new client for receiving and sending cloud events
func NewEnvConfig ¶
func NewEnvConfig() adapter.EnvConfigAccessor
Types ¶
type AdapterEnvConfigAccessor ¶
type AdapterEnvConfigAccessor interface { adapter.EnvConfigAccessor GetSource() string GetPort() int }
Click to show internal directories.
Click to hide internal directories.