userstack

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module[T user.AuthCapableModel] struct {
	NewModel func() T
	Repo     Repository[T]
	Core     user.Usecase[T]
	Email    user.EmailUsecase[T]
	Password user.PasswordUsecase[T]
}

Module groups user repositories and usecases for GraphQL/auth wiring.

func NewModule

func NewModule[T user.AuthCapableModel](newModel func() T) Module[T]

NewModule wires the full auth-capable user stack (example/api).

type Repository

type Repository[T user.AuthCapableModel] interface {
	user.Repository[T]
	user.EmailRepository[T]
	user.PasswordRepository[T]
}

Repository composes core + email + password repositories.

func NewRepository

func NewRepository[T user.AuthCapableModel](newModel func() T) Repository[T]

NewRepository wires core, email, and password repositories for auth-capable user type.

Jump to

Keyboard shortcuts

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