repositories

package
v0.0.0-...-205f8ad Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserReader

type UserReader struct {
	// contains filtered or unexported fields
}

func NewUserReader

func NewUserReader(db *gorm.DB) *UserReader

func (*UserReader) FindByEmail

func (u *UserReader) FindByEmail(email string) (*models.User, error)

func (*UserReader) FindByEmailOrLogin

func (u *UserReader) FindByEmailOrLogin(email, login string) (*models.User, error)

type UserWriter

type UserWriter struct {
	pb.UsersClient
}

func NewUserWriter

func NewUserWriter(c *config.Config) *UserWriter

func (*UserWriter) Create

func (u *UserWriter) Create(usr *models.User) (*int32, error)

Jump to

Keyboard shortcuts

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