Documentation
¶
Index ¶
- func GraphQL(provider *jwt.Provider, options option.Usecase, opts ...Option) http.Handler
- func WithUserAccountResolvers[TUser user.Model, TAccount account.Model](provider *jwt.Provider, users wiring.UserQueryResolver, ...) wiring.Option
- func WithUserLoginHandler[TUser user.Model, TAccount account.Model](provider *jwt.Provider, userLogin accountlogin.LoginPasswordAuth[TUser], ...) wiring.Option
- type Option
- type Options
- type OptionsConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithUserAccountResolvers ¶ added in v0.5.0
func WithUserAccountResolvers[TUser user.Model, TAccount account.Model]( provider *jwt.Provider, users wiring.UserQueryResolver, auth *accountgraphql.AuthResolver[TUser, TAccount], accounts accountgraphql.AccountQueryHandler[*exmodels.Account, *exmodels.AccountPayload, *exmodels.AccountCreateInput, *exmodels.AccountUpdateInput, *exmodels.AccountListFilter, *exmodels.AccountListOrder], members accountgraphql.MemberQueryHandler, ) wiring.Option
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
Re-export wiring types so callers can use the graphql package directly.
type Options ¶ added in v0.5.0
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.
Click to show internal directories.
Click to hide internal directories.