Documentation ¶
Index ¶
- Variables
- func NewDataLoaderMiddleware(wait time.Duration, maxBatch int, userService user.Service, ...) func(http.Handler) http.Handler
- func PeerLoaderFromContext(ctx context.Context) (*dataloader.Loader[string, *model.Peer], error)
- func ServerLoaderFromContext(ctx context.Context) (*dataloader.Loader[string, *model.Server], error)
- func UserLoaderFromContext(ctx context.Context) (*dataloader.Loader[string, *model.User], error)
- type AuthenticationHandler
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewDataLoaderMiddleware ¶
func PeerLoaderFromContext ¶
func ServerLoaderFromContext ¶
Types ¶
type AuthenticationHandler ¶
type AuthenticationHandler interface { WebsocketMiddleware() func(ctx context.Context, payload transport.InitPayload) (context.Context, error) AuthenticationMiddleware() func(http.Handler) http.Handler }
func NewAuthenticationMiddleware ¶
func NewAuthenticationMiddleware(authService auth.Service, userService user.Service) AuthenticationHandler
Click to show internal directories.
Click to hide internal directories.