gluon

Types

pub type Socket =
  #(Subject(ClientMessage), Subject(ClientMessage))

Functions

pub fn close(socket: #(Subject(ClientMessage), a)) -> Result(
  Nil,
  b,
)
pub fn del(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), key: String) -> Result(Int, String)
pub fn get(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), key: String) -> Result(String, String)
pub fn llen(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), key: String) -> Result(Int, String)
pub fn lpush(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), key: String, value: String) -> Result(Int, String)
pub fn lrange(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), key: String, start: Int, stop: Int) -> Result(
  List(String),
  String,
)
pub fn open(host: String, port: Int) -> #(
  Subject(ClientMessage),
  Subject(ClientMessage),
)
pub fn ping(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  )) -> Result(String, String)
pub fn send_command(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), command: String) -> Result(String, String)
pub fn set(socket: #(
    Subject(ClientMessage),
    Subject(ClientMessage),
  ), key: String, value: String) -> Result(String, String)
Search Document