Documentation
¶
Index ¶
- type PostgresRepository
- func (repo *PostgresRepository) Close() error
- func (repo *PostgresRepository) GetUserByEmail(ctx context.Context, email string) (*models.User, error)
- func (repo *PostgresRepository) GetUserById(ctx context.Context, id int64) (*models.User, error)
- func (repo *PostgresRepository) InsertUser(ctx context.Context, user *models.User) (id int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresRepository ¶
type PostgresRepository struct {
// contains filtered or unexported fields
}
func NewPostgresRepository ¶
func NewPostgresRepository(url string) (*PostgresRepository, error)
func (*PostgresRepository) Close ¶
func (repo *PostgresRepository) Close() error
func (*PostgresRepository) GetUserByEmail ¶
func (*PostgresRepository) GetUserById ¶
func (*PostgresRepository) InsertUser ¶
Click to show internal directories.
Click to hide internal directories.