View Source ThousandIsland.ServerConfig (Thousand Island v1.3.7)

Encapsulates the configuration of a ThousandIsland server instance

This is used internally by ThousandIsland.Handler

Summary

Types

t()

A set of configuration parameters for a ThousandIsland server instance

Types

t()

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

A set of configuration parameters for a ThousandIsland server instance

Functions

new(opts \\ [])

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