Documentation
¶
Index ¶
- type PostgresDB
- type Repository
- func (r *Repository) CreateUserV1(ctx context.Context, params model.CreateUserRequestV1) (*model.DBUser, error)
- func (r *Repository) DeactivateUserV1(ctx context.Context, req model.DeactivateUserRequestV1) error
- func (r *Repository) GetUserV1(ctx context.Context, req model.GetUserRequestV1) (*model.DBUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDB ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(pgDB PostgresDB) *Repository
func (*Repository) CreateUserV1 ¶
func (r *Repository) CreateUserV1(ctx context.Context, params model.CreateUserRequestV1) (*model.DBUser, error)
func (*Repository) DeactivateUserV1 ¶
func (r *Repository) DeactivateUserV1(ctx context.Context, req model.DeactivateUserRequestV1) error
func (*Repository) GetUserV1 ¶
func (r *Repository) GetUserV1(ctx context.Context, req model.GetUserRequestV1) (*model.DBUser, error)
Click to show internal directories.
Click to hide internal directories.