repo

package
v0.0.0-...-8c37f39 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sqlx.DB

Functions

func PurgeTables

func PurgeTables()

func SetupTestDB

func SetupTestDB()

Types

type UsersRepoType

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

func NewUsersRepository

func NewUsersRepository(db *sqlx.DB) UsersRepoType

func (*UsersRepoType) CreateUser

func (ur *UsersRepoType) CreateUser(ctx context.Context, nUser models.UsersCreateRequest) (models.User, error)

type UsersRepository

type UsersRepository interface {
	CreateUser(ctx context.Context, newUser models.UsersCreateRequest) (models.User, error)
}

Jump to

Keyboard shortcuts

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