Packages

Adds MessagePack functionality to Tethys

Current section

Files

Jump to
tethys_msgpack lib tethys locks msg_pack_lock.ex
Raw

lib/tethys/locks/msg_pack_lock.ex

defmodule Tethys.Locks.MsgPackLock do
use Tethys.Locks.LockMaker, [
on_enter: fn data -> Msgpax.pack!(data) end,
on_exit: fn data -> Msgpax.unpack!(data) end
]
@moduledoc """
Converts all data that passes through, with Msgpack and back again
"""
end