F+Foldkit Plus
HomeLearnPackagesComponentsDemosGitHub ↗

Guard

Guides

  • Overview
  • What it owns, and what it does not
  • Mental model
  • Sixty seconds
  • Attaching guards to an Entity
  • Deciding reads and writes
  • Serving reads
  • Serving writes
  • Checking a server at startup
  • Who is asking
  • What the client may do
  • Who the client is: Me
  • When a rule refuses
  • Sync
  • Agents
  • Limits

API

  • foldkit-guard
  • foldkit-guard/server
  • foldkit-guard/drizzle
  • foldkit-guard/agent
  • foldkit-guard/sync

Open source, MIT
Foldkit 0.168 · Effect 4

Guard / foldkit-guard

Explain

interface · packages/guard/src/attach.ts:54

interface Explain {
  readonly _tag: 'Explain'
  readonly reason: string
}

A refused write's sentence, for the application's own users.

In the guides

  • Deciding reads and writesGuard / foldkit-guard

Members

Explain._tag#

property · packages/guard/src/attach.ts:55

readonly _tag: 'Explain'

Explain.reason#

property · packages/guard/src/attach.ts:56

readonly reason: string
Previousfoldkit-guard

On this page

  • In the guides
  • _tag
  • reason

Edit on GitHub ↗

This site is a Foldkit Plus application, rendered at build time with foldkit-ssr. Its source

FoldkitEffectGitHub