Hell.ServerConfig (Hell v0.1.0)

Copy Markdown View Source

Encapsulates the configuration of a Hell server instance

This is used internally by Hell.Handler

Summary

Types

t()

A set of configuration parameters for a Hell server instance

Types

t()

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

A set of configuration parameters for a Hell server instance

Functions

new(opts \\ [])

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