gflare/durable_object

Types

pub type FetchOptions {
  FetchOptions(method: String, body: option.Option(json.Json))
}

Constructors

pub type Id
pub type Namespace
pub type Stub

Values

pub fn delete_alarm(
  stub: Stub,
) -> promise.Promise(Result(Nil, error.Error))
pub fn delete_key(
  stub: Stub,
  key: String,
) -> promise.Promise(Result(Nil, error.Error))
pub fn fetch(
  stub: Stub,
  path: String,
  options: FetchOptions,
) -> promise.Promise(Result(dynamic.Dynamic, error.Error))
pub fn fetch_options() -> FetchOptions
pub fn fetch_options_with(
  method method: String,
  body body: option.Option(json.Json),
) -> FetchOptions
pub fn get(
  stub: Stub,
) -> promise.Promise(Result(dynamic.Dynamic, error.Error))
pub fn get_alarm(
  stub: Stub,
) -> promise.Promise(Result(option.Option(Int), error.Error))
pub fn get_stub(namespace: Namespace, id: Id) -> Stub
pub fn id_from_name(namespace: Namespace, name: String) -> Id
pub fn id_from_string(namespace: Namespace, id: String) -> Id
pub fn set(
  stub: Stub,
  key: String,
  value: json.Json,
) -> promise.Promise(Result(Nil, error.Error))
pub fn set_alarm(
  stub: Stub,
  timestamp: Int,
) -> promise.Promise(Result(Nil, error.Error))
Search Document