Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresRepository ¶
type PostgresRepository interface {
Create(ctx context.Context, entity interface{}) (interface{}, error)
Get(ctx context.Context, where string) (interface{}, error)
GetByID(ctx context.Context, ID int) (interface{}, error)
Update(ctx context.Context, ID int, entity interface{}) (interface{}, error)
Delete(ctx context.Context, ID int) error
Transaction(tx *sql.Tx) error
}
PostgresRepository interface represents a postgres repository
Click to show internal directories.
Click to hide internal directories.