jetmessage

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TypedMessage

type TypedMessage[T any] interface {
	jetstream.Msg
	Payload() *T
}

func NewMessage

func NewMessage[T any](codec peanats.Codec, msg jetstream.Msg) (TypedMessage[T], error)

NewMessage is TypedMessage factory function

type TypedMessageBatch

type TypedMessageBatch[T any] interface {
	jetstream.MessageBatch
	Next(ctx context.Context) (TypedMessage[T], error)
}

func NewMessageBatch

func NewMessageBatch[T any](codec peanats.Codec, batch jetstream.MessageBatch) TypedMessageBatch[T]

Jump to

Keyboard shortcuts

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