Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserLoaderFromContext ¶
func UserLoaderFromContext(ctx context.Context) (*dataloader.UserLoader, bool)
Types ¶
type Dataloader ¶
type Dataloader struct { UserServiceClient userv1beta1.UserServiceClient Logger *zap.Logger }
func (*Dataloader) ApplyMiddleware ¶
func (m *Dataloader) ApplyMiddleware(next http.Handler) http.Handler
func (*Dataloader) FetchUsers ¶
func (m *Dataloader) FetchUsers(ctx context.Context, names []string) ([]*userv1beta1.User, []error)
Click to show internal directories.
Click to hide internal directories.