carotte

Types

pub opaque type Builder
pub type CarotteClient {
  CarotteClient(pid: Pid)
}

Constructors

  • CarotteClient(pid: Pid)
pub type CarotteError {
  Blocked
  Closed
}

Constructors

  • Blocked
  • Closed

Functions

pub fn close(client: CarotteClient) -> Result(Nil, CarotteError)
pub fn default_client() -> Builder
pub fn start(
  builder: Builder,
) -> Result(CarotteClient, CarotteError)
pub fn with_channel_max(
  builder: Builder,
  channel_max: Int,
) -> Builder
pub fn with_connection_timeout(
  builder: Builder,
  connection_timeout: Int,
) -> Builder
pub fn with_frame_max(
  builder: Builder,
  frame_max: Int,
) -> Builder
pub fn with_heartbeat(
  builder: Builder,
  heartbeat: Int,
) -> Builder
pub fn with_host(builder: Builder, host: String) -> Builder
pub fn with_password(
  builder: Builder,
  password: String,
) -> Builder
pub fn with_port(builder: Builder, port: Int) -> Builder
pub fn with_username(
  builder: Builder,
  username: String,
) -> Builder
pub fn with_virtual_host(
  builder: Builder,
  virtual_host: String,
) -> Builder
Search Document