Skip to content

Instantly share code, notes, and snippets.

View fisherdarling's full-sized avatar
🐟

Fisher Darling fisherdarling

🐟
  • Cloudflare
View GitHub Profile
@fisherdarling
fisherdarling / inserter.rs
Created November 15, 2022 08:31
DO Inserter Implementation with Usage
use async_trait::async_trait;
use serde::{Deserialize, Serialize};
use worker::*;
use workers_do_proxy::{
durable_object_proxy,
error::Error,
proxy::{ProxiedObject, ProxiedRequest},
Ctx,
};
use workers_traits::{env::Env, state::State, storage::Storage};