View Source lake (lake v0.2.0)

Connect to and use RabbitMQ Streams.

Link to this section Summary

Functions

Convert a delivered osiris chunk into a list of messages.
Establish a connection.

See also: connect/5, connect/6.

Set a subscription's credit asynchronously.
Delete a stream.
Retrieve stream metadata such as endpoints and replicas.
Retrieve all partitions of SuperStream.
Publish a message asynchronously.
Publish a message synchronously.
Query a publisher's stored offset from the stream.
Determine the partition for RoutingKey.
Stop a connection.

Store a publisher's offset to the stream.

Retrieve statistics for Stream.
Establish a connection via TLS.

See also: tls_connect/5, tls_connect/6.

Unsubscribe from a stream.

Link to this section Functions

Link to this function

chunk_to_messages(OsirisChunk)

View Source
Convert a delivered osiris chunk into a list of messages.
Link to this function

connect(Host, User, Password, Vhost)

View Source
Establish a connection.

See also: connect/5, connect/6.

Link to this function

connect(Host, Port, User, Password, Vhost)

View Source
Establish a connection.

See also: connect/4, connect/6.

Link to this function

connect(Host, Port, User, Password, Vhost, Options)

View Source

Establish a connection.

Options supports the options ssl:connect/6 offers, and also the following:

* {exchange_command_versions, boolean()}: Enable exchanging command versions. Requires RabbitMQ 3.11. Defaults to true.

See also: connect/4, connect/5.

Link to this function

consumer_update_response(Connection, CorrelationId, ResponseCode, OffsetSpecification)

View Source
Respond to a consumer_update request.
Link to this function

create(Connection, Stream, Arguments)

View Source
Create a new stream.
Link to this function

credit_async(Connection, SubscriptionId, Credit)

View Source
Set a subscription's credit asynchronously.
Link to this function

declare_publisher(Connection, Stream, PublisherId, PublisherReference)

View Source
Declare a publisher.
Link to this function

delete(Connection, Stream)

View Source
Delete a stream.
Link to this function

delete_publisher(Connection, PublisherId)

View Source
Delete a publisher.
Link to this function

metadata(Connection, Streams)

View Source
Retrieve stream metadata such as endpoints and replicas.
Link to this function

partitions(Connection, SuperStream)

View Source
Retrieve all partitions of SuperStream.
Link to this function

publish_async(Connection, PublisherId, Messages)

View Source
Publish a message asynchronously.
Link to this function

publish_sync(Connection, PublisherId, Messages)

View Source
Publish a message synchronously.
Link to this function

query_offset(Connection, PublisherReference, Stream)

View Source
Query a publisher's stored offset from the stream.
Link to this function

query_publisher_sequence(Connection, PublisherReference, Stream)

View Source
Query a publisher's sequence.
Link to this function

route(Connection, RoutingKey, SuperStream)

View Source
Determine the partition for RoutingKey.
Stop a connection.
Link to this function

store_offset(Connection, PublisherReference, Stream, Offset)

View Source

Store a publisher's offset to the stream.

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

stream_stats(Connection, Stream)

View Source
Retrieve statistics for Stream.
Link to this function

subscribe(Connection, Stream, SubscriptionId, OffsetDefinition, Credit, Properties)

View Source
Subscribe to a stream.
Link to this function

tls_connect(Host, User, Password, Vhost)

View Source
Establish a connection via TLS.

See also: tls_connect/5, tls_connect/6.

Link to this function

tls_connect(Host, Port, User, Password, Vhost)

View Source
Establish a connection via TLS.

See also: tls_connect/4, tls_connect/6.

Link to this function

tls_connect(Host, Port, User, Password, Vhost, Options)

View Source

Establish a connection via TLS.

Options supports the options ssl:connect/6 offers, and also the following:

* {exchange_command_versions, boolean()}: Enable exchanging command versions. Requires RabbitMQ 3.11. Defaults to true.

See also: tls_connect/4, tls_connect/5.

Link to this function

unsubscribe(Connection, SubscriptionId)

View Source
Unsubscribe from a stream.