Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware injects data loaders into the context
Types ¶
type Loaders ¶
type Loaders struct {
UserLoader *dataloadgen.Loader[string, *model.User]
}
Loaders wrap your data loaders to inject via middleware
func NewLoaders ¶
func NewLoaders(s *storage.UserStorage) *Loaders
NewLoaders instantiates data loaders for the middleware
Click to show internal directories.
Click to hide internal directories.