package
0.0.0-20241209154731-68356499f064
Repository: https://github.com/serverless/event-gateway.git
Documentation: pkg.go.dev
# Functions
FromRequest takes an HTTP request and returns an Event along with path.
New return new instance of Event.
NewHTTPRequestData returns a new instance of HTTPRequestData.
# Constants
CloudEventsVersion currently supported by Event Gateway.
SystemEventReceivedType is a system event emitted when the Event Gateway receives an event.
SystemFunctionInvocationFailedType is a system event emitted after successful function invocation.
SystemFunctionInvokedType is a system event emitted after successful function invocation.
SystemFunctionInvokingType is a system event emitted before invoking a function.
TransformationVersion is indicative of the revision of how Event Gateway transforms a request into CloudEvents format.
TypeHTTPRequest is a special type of event HTTP requests that are not CloudEvents.
# Structs
ErrAuthorizerDoesNotExists occurs when there authorizer function doesn't exists.
ErrEventTypeAlreadyExists occurs when event type with specified name already exists.
ErrEventTypeHasSubscriptions occurs when there are subscription for the event type.
ErrEventTypeNotFound occurs when event type cannot be found.
ErrEventTypeValidation occurs when event type payload doesn't validate.
ErrParsingCloudEvent occurs when payload is not valid CloudEvent.
Event is a default event structure.
HTTPRequestData is a event schema used for sending events to HTTP subscriptions.
SystemEventReceivedData struct.
SystemFunctionInvocationFailedData struct.
SystemFunctionInvokedData struct.
SystemFunctionInvokingData struct.
Type is a registered event type.
# Interfaces
Service represents service for managing event types.