Skip to content

Set *stan.Msg metadata on receiver ctx #657

@dan-j

Description

@dan-j

After discussion on slack, it it desirable to set NATS Streaming message metadata on the context.Context which can be passed into receivers.

This can be implemented by implementing the binding.MessageContext interface at the protocol layer.

At the moment, the context passed to receivers is the same as passed to client.StartReceiver(ctx), so this functionality should prevent breaking changes for existing users where they expect ctx to have a certain state.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions