Discover Packages
github.com/conduitio-labs/conduit-connector-nats-jetstream
source
jetstream
package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: May 11, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Iterator is a iterator for JetStream communication model.
It receives message from NATS JetStream.
NewIterator creates new instance of the Iterator.
Ack acknowledges a message at the given position.
HasNext checks is the iterator has messages.
Next returns the next record from the underlying messages channel.
It also appends messages to a unackMessages slice if the AckPolicy is not equal to AckNonePolicy.
Stop stops the Iterator, unsubscribes from a subject.
type IteratorParams struct {
Conn *nats.Conn
BufferSize int
Durable string
DeliverSubject string
Subject string
SDKPosition sdk .Position
DeliverPolicy nats.DeliverPolicy
AckPolicy nats.AckPolicy
}
IteratorParams contains incoming params for the NewIterator function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.