Documentation ¶
Index ¶
- func New(conf map[string]string) (drivers.DataStore, error)
- type Postgres
- func (p *Postgres) Close() error
- func (p *Postgres) Connect() error
- func (ur *Postgres) CreateUser(ctx context.Context, user *entity.User) (int, error)
- func (ur *Postgres) GetUserByEmail(ctx context.Context, email string) (user *entity.User, err error)
- func (ur *Postgres) GetUserByID(ctx context.Context, id int) (user *entity.User, err error)
- func (ur *Postgres) GetUsers(ctx context.Context) (users []*entity.User, err error)
- func (p *Postgres) Name() string
- type SearchQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func (*Postgres) CreateUser ¶
func (*Postgres) GetUserByEmail ¶
func (*Postgres) GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.