1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Gun.Conn do
7 Struct for gun connection data
9 @type gun_state :: :up | :down
10 @type conn_state :: :active | :idle
12 @type t :: %__MODULE__{
14 gun_state: gun_state(),
15 conn_state: conn_state(),
17 last_reference: pos_integer(),
19 retries: pos_integer()