View Source ExRocketmq.Compressor behaviour (lib_oss v0.1.0)

This module provides compression and decompression functionality for messages sent to and received from RocketMQ.

It defines a behavior ExRocketmq.Compressor that can be implemented by custom compression modules.

Examples

iex> ExRocketmq.Compressor.compress(MyCompressor, "Hello World")
"compressed data"

Summary

Callbacks

Link to this callback

compress(binary, keyword)

View Source
@callback compress(
  binary(),
  keyword()
) :: binary()
@callback uncompress(binary()) :: binary()

Functions

Link to this function

compress(m, data, opts \\ [])

View Source
@spec compress(module(), binary(), keyword()) :: binary()
@spec uncompress(module(), binary()) :: binary()