2.0.0 • Published 12 months ago

columbarium v2.0.0

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

Columbarium

A timeoutDB, call webhook when time is up

Usage below

 {
        path: "/record/:task_id",
        method: "post",
        isDirect: false,
        handler: RootInterface.add,
        addon: {
            body: t.Object({
                webhook_url: t.String(),
                timeout: t.Number()
            }),
            params: t.Object({
                task_id: t.String()
            })
        }
    },
    {
        path: "/record/:task_id",
        method: "put",
        isDirect: false,
        handler: RootInterface.update,
        addon: {
            params: t.Object({
                task_id: t.String()
            })
        }
    },
    {
        path: "/record/:task_id",
        method: "delete",
        isDirect: false,
        handler: RootInterface.del,
        addon: {
            params: t.Object({
                task_id: t.String()
            })
        }
    }

Webhook

GET /?task_id=0 HTTP/1.1
2.0.0

12 months ago

0.0.1

12 months ago