domain

package
v0.0.0-...-5bea977 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepository

type AuthRepository interface {
	FindBy(username string, password string) (*Login, *errs.AppError)
}

type AuthRepositoryDb

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

func NewAuthRepository

func NewAuthRepository(client sqlx.DB) AuthRepositoryDb

func (AuthRepositoryDb) FindBy

func (d AuthRepositoryDb) FindBy(username string, password string) (*Login, *errs.AppError)

type Login

type Login struct {
	UserName string         `db:"username"`
	UserId   sql.NullString `db:"customer_id"`
	Accounts sql.NullString `db:"account_numbers"`
	Role     string         `db:"role"`
}

Jump to

Keyboard shortcuts

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