Gemini.ClientConnection (Gemini v0.2.0)

Represents a single connection. Spawned by :ranch.

Link to this section Summary

Link to this section Types

Specs

limited() :: {:inet.ip_address(), {:limited, pos_integer()}}
Link to this type

rate_limit_status()

Specs

rate_limit_status() :: limited() | unlimited()

Specs

unlimited() :: {:inet.ip_address() | nil, :unlimited}

Link to this section Functions

Link to this function

init(ref, transport, options)

Specs

init(any(), any(), keyword()) :: :ok
Link to this function

loop(socket, transport, buffer, arg, router)

Specs

loop(any(), any(), binary(), rate_limit_status(), atom()) :: :ok