wise

package
v0.0.0-...-bc01f90 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoRepository

func NewMongoRepository[M, D any](col *mongo.Collection, ser mongodb.Serializer[M, D]) (mongodb.Repository[M], error)

func NewMongoSimpleRepository

func NewMongoSimpleRepository[M any](col *mongo.Collection) (mongodb.Repository[M], error)

func WithDefaultPageSize

func WithDefaultPageSize(size int) mongodb.RepositoryOptions

func WithMaxPageSize

func WithMaxPageSize(size int) mongodb.RepositoryOptions

func WithPage

func WithPage(page int) mongodb.SearchOptions

func WithPageMethod

func WithPageMethod(method string) mongodb.SearchOptions

func WithPageSize

func WithPageSize(pageSize int) mongodb.SearchOptions

func WithSort

func WithSort(sort map[string]int) mongodb.SearchOptions

Types

type MongoRepository

type MongoRepository[M any] mongodb.Repository[M]

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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