Documentation ¶
Index ¶
- Constants
- func HandleDiscardEventsIDValue() string
- func HandlerWrapperModule() fx.Option
- func HelperModule(extraOptions fx.Option) fx.Option
- type Handler
- type HandlerWrapper
- type HandlerWrapperOptions
- type Helper
- type InOut
- type Middleware
- type UnimplementedMiddleware
- func (u UnimplementedMiddleware) After(ctx context.Context, in v2.Event, out *v2.Event, err error) (context.Context, error)
- func (u UnimplementedMiddleware) AfterAll(ctx context.Context, inout []*InOut) (context.Context, error)
- func (u UnimplementedMiddleware) Before(ctx context.Context, in *v2.Event) (context.Context, error)
- func (u UnimplementedMiddleware) BeforeAll(ctx context.Context, inout []*InOut) (context.Context, error)
- func (u UnimplementedMiddleware) Close(ctx context.Context) error
Constants ¶
View Source
const (
ExtRoot = root + ".ext"
)
Variables ¶
This section is empty.
Functions ¶
func HandleDiscardEventsIDValue ¶
func HandleDiscardEventsIDValue() string
func HandlerWrapperModule ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(h *HandlerWrapper) *Handler
type HandlerWrapper ¶
type HandlerWrapper struct {
// contains filtered or unexported fields
}
func NewDefaultHandlerWrapper ¶
func NewDefaultHandlerWrapper(handler cloudevents.Handler, middlewares ...Middleware) *HandlerWrapper
func NewHandlerWrapper ¶
func NewHandlerWrapper(handler cloudevents.Handler, options *HandlerWrapperOptions, middlewares ...Middleware) *HandlerWrapper
type HandlerWrapperOptions ¶
type HandlerWrapperOptions struct {
IDsToDiscard []string
}
func DefaultHandlerWrapperOptions ¶
func DefaultHandlerWrapperOptions() (*HandlerWrapperOptions, error)
type Middleware ¶
type Middleware interface { BeforeAll(ctx context.Context, inout []*InOut) (context.Context, error) Before(ctx context.Context, in *v2.Event) (context.Context, error) After(ctx context.Context, in v2.Event, out *v2.Event, err error) (context.Context, error) AfterAll(ctx context.Context, inout []*InOut) (context.Context, error) Close(ctx context.Context) error }
func NewUnimplementedMiddleware ¶
func NewUnimplementedMiddleware() Middleware
Source Files ¶
Click to show internal directories.
Click to hide internal directories.