userrepo

package
v0.0.0-...-e6e2e8d Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package userrepo manages repository layer of users.

Index

Constants

View Source
const CreateQuery = `` /* 200-byte string literal not displayed */

CreateQuery inserts into users table.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoPGS

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

RepoPGS facilitates user repository layer logic.

func NewRepoPGS

func NewRepoPGS(db dbpkg.SQLInterface) *RepoPGS

NewRepoPGS returns account RepoPGS.

func (*RepoPGS) Create

func (r *RepoPGS) Create(ctx context.Context, arg domain.CreateUserParams) (domain.User, error)

Create creates the user and then returns it.

func (*RepoPGS) Get

func (r *RepoPGS) Get(ctx context.Context, username string) (domain.User, error)

Get returns the user with the given username.

Jump to

Keyboard shortcuts

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