gflare/durable_object
Types
pub type FetchOptions {
FetchOptions(method: String, body: option.Option(json.Json))
}
Constructors
-
FetchOptions(method: String, body: option.Option(json.Json))
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 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))