Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByIDsLoader ¶
func GetByIDsLoader[T model.HasID]( ctx context.Context, keys dataloader.Keys, getByIDs func([]string) ([]*T, error)) []*dataloader.Result
func NewObjNotFoundErr ¶
Types ¶
type ErrorObjNotFound ¶
type ErrorObjNotFound struct {
ID string
}
func (*ErrorObjNotFound) Error ¶
func (e *ErrorObjNotFound) Error() string
type Loaders ¶
type Loaders struct { MachineByID *dataloader.Loader ProjectByID *dataloader.Loader RouteByID *dataloader.Loader // contains filtered or unexported fields }
func NewLoaders ¶
func NewLoaders() *Loaders
NewLoaders instantiates data loaders for the middleware
Click to show internal directories.
Click to hide internal directories.