middleware

package
v0.0.0-...-8c39dc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2020 License: MIT Imports: 7 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL