Abyss.ServerConfig (Abyss v0.3.2)

View Source

Encapsulates the configuration of a Abyss server instance

This is used internally by Abyss.Handler

Summary

Types

t()

A set of configuration parameters for a Abyss server instance

Types

t()

@type t() :: %Abyss.ServerConfig{
  broadcast: boolean(),
  genserver_options: GenServer.options(),
  handler_module: module(),
  handler_options: term(),
  max_connections_retry_count: non_neg_integer(),
  max_connections_retry_wait: timeout(),
  num_connections: non_neg_integer() | :infinity,
  num_listeners: pos_integer(),
  port: :inet.port_number(),
  read_timeout: timeout(),
  shutdown_timeout: timeout(),
  silent_terminate_on_error: boolean(),
  supervisor_options: [Supervisor.option()],
  transport_options: Abyss.transport_options()
}

A set of configuration parameters for a Abyss server instance

Functions

new(opts \\ [])

@spec new(Abyss.options()) :: t()