graphql

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GraphQL

func GraphQL(provider *jwt.Provider, options option.Usecase, opts ...Option) http.Handler

GraphQL mux handler

func WithUserAccountResolvers added in v0.5.0

WithUserAccountResolvers sets all four custom resolvers in one call. auth must be the concrete *AuthResolver so the email+password login handler can be wired automatically.

func WithUserLoginHandler added in v0.5.0

func WithUserLoginHandler[TUser user.Model, TAccount account.Model](
	provider *jwt.Provider,
	userLogin accountlogin.LoginPasswordAuth[TUser],
	sessionRepo account.SessionRepository[TUser, TAccount],
) wiring.Option

WithUserLoginHandler re-exports wiring.WithUserLoginHandler.

Types

type Option added in v0.5.0

type Option = wiring.Option

Re-export wiring types so callers can use the graphql package directly.

type Options added in v0.5.0

type Options = []wiring.Option

Re-export wiring types so callers can use the graphql package directly.

type OptionsConfig added in v0.5.0

type OptionsConfig = wiring.OptionsConfig

Re-export wiring types so callers can use the graphql package directly.

func Apply added in v0.5.0

func Apply(opts Options, cfg *OptionsConfig) *OptionsConfig

Apply applies opts to cfg and returns it.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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