Module lake

Connect to and use RabbitMQ Streams.

Description

Connect to and use RabbitMQ Streams.

Function Index

chunk_to_messages/1Convert a delivered osiris chunk into a list of messages.
connect/4Establish a connection.
connect/5Establish a connection.
create/3Create a new stream.
credit_async/3Set a subscription's credit asynchronously.
declare_publisher/4Declare a publisher.
delete/2Delete a stream.
delete_publisher/2Delete a publisher.
metadata/2Retrieve stream metadata such as endpoints and replicas.
publish_sync/3Publish a message synchronously.
query_offset/3Query a publisher's stored offset from the stream.
query_publisher_sequence/3Query a publisher's sequence.
stop/1Stop a connection.
store_offset/4Store a publisher's offset to the stream.
subscribe/6Subscribe to a stream.
tls_connect/4not yet implemented.
tls_connect/5not yet implemented.
unsubscribe/2Unsubscribe from a stream.

Function Details

chunk_to_messages/1

chunk_to_messages(OsirisChunk) -> any()

Convert a delivered osiris chunk into a list of messages.

connect/4

connect(Host, User, Password, Vhost) -> any()

Establish a connection.

See also: connect/5.

connect/5

connect(Host, Port, User, Password, Vhost) -> any()

Establish a connection.

See also: connect/4.

create/3

create(Connection, Stream, Arguments) -> any()

Create a new stream.

credit_async/3

credit_async(Connection, SubscriptionId, Credit) -> any()

Set a subscription's credit asynchronously.

declare_publisher/4

declare_publisher(Connection, Stream, PublisherId, PublisherReference) -> any()

Declare a publisher.

delete/2

delete(Connection, Stream) -> any()

Delete a stream.

delete_publisher/2

delete_publisher(Connection, PublisherId) -> any()

Delete a publisher.

metadata/2

metadata(Connection, Streams) -> any()

Retrieve stream metadata such as endpoints and replicas.

publish_sync/3

publish_sync(Connection, PublisherId, Messages) -> any()

Publish a message synchronously.

query_offset/3

query_offset(Connection, PublisherReference, Stream) -> any()

Query a publisher's stored offset from the stream.

query_publisher_sequence/3

query_publisher_sequence(Connection, PublisherReference, Stream) -> any()

Query a publisher's sequence.

stop/1

stop(Connection) -> any()

Stop a connection.

store_offset/4

store_offset(Connection, PublisherReference, Stream, Offset) -> any()

Store a publisher's offset to the stream.

FIXME store_offset/4 is fire-and-forget; maybe the name should indicate that?

subscribe/6

subscribe(Connection, Stream, SubscriptionId, OffsetDefinition, Credit, Properties) -> any()

Subscribe to a stream.

tls_connect/4

tls_connect(Host, User, Password, Vhost) -> any()

not yet implemented

tls_connect/5

tls_connect(Host, Port, User, Password, Vhost) -> any()

not yet implemented

unsubscribe/2

unsubscribe(Connection, SubscriptionId) -> any()

Unsubscribe from a stream.


Generated by EDoc