Skip to content

Middleware for NoPublishHandlerFunc #623

@kathicks

Description

@kathicks

Hello!

Am looking to implement middleware for a consumer handler, but can't see a way of doing this currently, as the HandlerMiddleware has an interface of func(h HandlerFunc) HandlerFunc and a HandlerFunc has an interface of func(msg *Message) ([]*Message, error), whereas the NoPublishHandlerFunc has an interface of func(msg *Message) error.

Is there a recommended pattern for implementing middleware for consumer handlers?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions