natsmiddleware

package module
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractJetStreamMetadata

func ExtractJetStreamMetadata(next xpubsub.Handler) xpubsub.Handler

ExtractJetStreamMetadata is a middleware that extracts JetStream message metadata and stores in the context with the key JetStreamMetadataCtxKey.

func ExtractJetStreamMsgSequence

func ExtractJetStreamMsgSequence(next xpubsub.Handler) xpubsub.Handler

ExtractJetStreamMsgSequence extracts the timestamp from the JetStream Message metadata and stores it in the context.

func ExtractJetStreamMsgTimestamp

func ExtractJetStreamMsgTimestamp(next xpubsub.Handler) xpubsub.Handler

ExtractJetStreamMsgTimestamp extracts the timestamp from the JetStream Message metadata and stores it in the context.

Types

type JetStreamMetadataCtxKey

type JetStreamMetadataCtxKey struct{}

JetStreamMetadataCtxKey is the key to the JetStream Message metadata.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL