Liking cljdoc? Tell your friends :D

wagoe.events.shell.event-tenant

A handler runs in its event's tenant (BOU-985).

A handler runs in its event's tenant (BOU-985).
raw docstring

in-event-tenantclj

(in-event-tenant tenant-runner handler)

handler, called in the tenant of the event it gets: through tenant-runner (fn [tenant-id f], tenant's :wagoe/in-tenant) when there is one, so it runs in that tenant's schema, else with db/*tenant-id* bound. A handler subscribed at boot ran with no tenant, so its writes went to public and a push it sent reached every tenant.

`handler`, called in the tenant of the event it gets: through `tenant-runner`
(fn [tenant-id f], tenant's `:wagoe/in-tenant`) when there is one, so it
runs in that tenant's schema, else with `db/*tenant-id*` bound. A handler
subscribed at boot ran with no tenant, so its writes went to public and a
push it sent reached every tenant.
sourceraw docstring

visibleclj

(visible events)

events a caller bound to a tenant may see: its own and system events.

`events` a caller bound to a tenant may see: its own and system events.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close