repository

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenSearchable = clause.FieldSearchable{}
View Source
var UserSearchable = clause.FieldSearchable{}

Functions

This section is empty.

Types

type ITokenRepository

type ITokenRepository interface {
	repository.Repository[ITokenRepository, model.RefreshToken]
}

type IUserRepository

type IUserRepository interface {
	repository.Repository[IUserRepository, model.User]
}

type TokenRepository

type TokenRepository struct {
	repository.Repo[model.RefreshToken]
}

func NewTokenRepository

func NewTokenRepository(db *gorm.DB) TokenRepository

func (TokenRepository) Joins

func (r TokenRepository) Joins(models ...string) ITokenRepository

func (TokenRepository) Omit

func (r TokenRepository) Omit(columns ...string) ITokenRepository

func (TokenRepository) OrderBy

func (r TokenRepository) OrderBy(orderBy map[string]string) ITokenRepository

func (TokenRepository) Trx

func (TokenRepository) With

func (r TokenRepository) With(models ...string) ITokenRepository

type UserRepository

type UserRepository struct {
	repository.Repo[model.User]
}

func NewUserRepository

func NewUserRepository(db *gorm.DB) UserRepository

func (UserRepository) Joins

func (r UserRepository) Joins(models ...string) IUserRepository

func (UserRepository) Omit

func (r UserRepository) Omit(columns ...string) IUserRepository

func (UserRepository) OrderBy

func (r UserRepository) OrderBy(orderBy map[string]string) IUserRepository

func (UserRepository) Trx

func (UserRepository) With

func (r UserRepository) With(models ...string) IUserRepository

Jump to

Keyboard shortcuts

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