postgres

package
v0.0.0-...-b187299 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *sqlx.DB) *Repository

func (*Repository) App

func (r *Repository) App(ctx context.Context, appId int) (app entity.App, err error)

func (*Repository) IsAdmin

func (r *Repository) IsAdmin(ctx context.Context, userId int64) (isAdmin bool, err error)

func (*Repository) SaveUser

func (r *Repository) SaveUser(ctx context.Context, email string, passHash []byte) (id int64, err error)

func (*Repository) User

func (r *Repository) User(ctx context.Context, email string) (user entity.User, err error)

Jump to

Keyboard shortcuts

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