Documentation ¶
Index ¶
- type DynamoTable
- type Repository
- func (r *Repository[T]) Delete(id int) (T, error)
- func (r *Repository[T]) Get(id int) (T, error)
- func (r *Repository[T]) GetFiltered(filters map[string]string, orderBy string, limit int, offset int) ([]T, int64, error)
- func (r *Repository[T]) Init(models []interface{}) error
- func (r *Repository[T]) Put(data *T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoTable ¶
type Repository ¶
type Repository[T any] struct { // contains filtered or unexported fields }
func NewPostgresRepository ¶
func NewPostgresRepository[T any](url string) (Repository[T], error)
func (*Repository[T]) Delete ¶
func (r *Repository[T]) Delete(id int) (T, error)
func (*Repository[T]) Get ¶
func (r *Repository[T]) Get(id int) (T, error)
func (*Repository[T]) GetFiltered ¶
func (*Repository[T]) Init ¶
func (r *Repository[T]) Init(models []interface{}) error
func (*Repository[T]) Put ¶
func (r *Repository[T]) Put(data *T) error
Click to show internal directories.
Click to hide internal directories.