Documentation
¶
Overview ¶
Package crud carries zero-sized marker types used as the first generic parameter of nexus.On[A, T] to identify which CRUD action a handler overrides.
Lives in its own subpackage so call sites read naturally:
nexus.On[crud.Create, User](func(ctx context.Context, db *gorm.DB, u *User) error { ... })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
Action is the type-set constraint that admits exactly the five CRUD action markers above. Used as the first generic parameter of nexus.On so the compiler rejects nexus.On[BogusType, User](...).
Click to show internal directories.
Click to hide internal directories.