db

package
v0.0.0-...-3773a65 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context) (*pgxpool.Pool, error)

Types

type PgxUserRepository

type PgxUserRepository struct {
	Pool *pgxpool.Pool
}

func NewUserRepository

func NewUserRepository(pool *pgxpool.Pool) *PgxUserRepository

func (*PgxUserRepository) GetUserEmailsByIds

func (repo *PgxUserRepository) GetUserEmailsByIds(ctx context.Context, userIds []string) ([]string, error)

func (*PgxUserRepository) GetUserPhonesByIds

func (repo *PgxUserRepository) GetUserPhonesByIds(ctx context.Context, userIds []string) ([]string, error)

type UserRepository

type UserRepository interface {
	GetUserEmailsByIds(ctx context.Context, userIds []string) ([]string, error)
	GetUserPhonesByIds(ctx context.Context, userIds []string) ([]string, error)
}

Jump to

Keyboard shortcuts

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