Documentation ¶
Index ¶
- type PostgresRepository
- func (r *PostgresRepository) CreateStatus(ctx context.Context, status StatusForCreate) (err error)
- func (r *PostgresRepository) DeleteStatus(ctx context.Context, statusID string) (err error)
- func (r *PostgresRepository) ListAllStatus(ctx context.Context, params *postgresutils.PageRequest) (postgresutils.Page[Status], error)
- func (r *PostgresRepository) UpdateStatus(ctx context.Context, statusID string, status StatusForUpdate) (err error)
- type Status
- type StatusForCreate
- type StatusForUpdate
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 NewPostgres ¶
func NewPostgres(db *sql.DB) *PostgresRepository
func (*PostgresRepository) CreateStatus ¶
func (r *PostgresRepository) CreateStatus(ctx context.Context, status StatusForCreate) (err error)
func (*PostgresRepository) DeleteStatus ¶
func (r *PostgresRepository) DeleteStatus(ctx context.Context, statusID string) (err error)
func (*PostgresRepository) ListAllStatus ¶
func (r *PostgresRepository) ListAllStatus(ctx context.Context, params *postgresutils.PageRequest) (postgresutils.Page[Status], error)
func (*PostgresRepository) UpdateStatus ¶
func (r *PostgresRepository) UpdateStatus(ctx context.Context, statusID string, status StatusForUpdate) (err error)
type StatusForCreate ¶
type StatusForCreate struct {
Name string `json:"name"`
}
type StatusForUpdate ¶
type StatusForUpdate struct {
Name string `json:"name"`
}
Click to show internal directories.
Click to hide internal directories.