persistence

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGormUserStore

func NewGormUserStore(db *gorm.DB) domain.UserStore

NewGormUserStore creates a new GORM-based user store.

func NewMongoUserStore

func NewMongoUserStore(
	ctx context.Context,
	client *mongo.Client,
	databaseName string,
	collectionName string,
) (domain.UserStore, error)

NewMongoUserStore builds a MongoDB-backed user repository and ensures indexes.

Types

This section is empty.

Directories

Path Synopsis
Package gorm provides a factory for creating GORM database connections.
Package gorm provides a factory for creating GORM database connections.
Package mongo provides a factory for creating MongoDB connections.
Package mongo provides a factory for creating MongoDB connections.

Jump to

Keyboard shortcuts

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