Documentation
¶
Overview ¶
Package appsyncevents routes native Lambda AppSync Events invocations.
Index ¶
Constants ¶
const MaxEventSize = 240 * 1024
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
Event retains the original JSON envelope, including unknown identity and request fields. Handlers share this envelope during individual publication and must treat it as read-only.
type NamedError ¶
NamedError supplies the JavaScript error name used in response envelopes.
func (*NamedError) Error ¶
func (e *NamedError) Error() string
func (*NamedError) ErrorName ¶
func (e *NamedError) ErrorName() string
func (*NamedError) Unwrap ¶
func (e *NamedError) Unwrap() error
type PublishOptions ¶
type PublishOptions struct{ Aggregate bool }
type Resolver ¶
type Resolver struct{ *Router }
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router stores separate publish and subscribe registries. Register routes before serving requests: successful lookup caches intentionally retain old registrations.
func (*Router) OnPublish ¶
func (r *Router) OnPublish(path string, handler PublishHandler, options ...PublishOptions)
func (*Router) OnSubscribe ¶
func (r *Router) OnSubscribe(path string, handler SubscribeHandler)
type UnauthorizedError ¶
type UnauthorizedError = UnauthorizedException
UnauthorizedError is the Go-style alias; it retains the runtime exception type name.
type UnauthorizedException ¶
type UnauthorizedException struct {
}
UnauthorizedException preserves the Go Lambda SDK's reflected errorType as well as the reference response name. Aggregate/subscription handlers propagate it; individual publication formats it in that item's error response.
func (*UnauthorizedException) Error ¶
func (e *UnauthorizedException) Error() string
func (*UnauthorizedException) ErrorName ¶
func (e *UnauthorizedException) ErrorName() string
func (*UnauthorizedException) Unwrap ¶
func (e *UnauthorizedException) Unwrap() error