Documentation ¶
Index ¶
- type CacheRepo
- func (r *CacheRepo) Create(accountID string, bin *models.Bin) error
- func (r *CacheRepo) Delete(accountID string, ID string) (int, error)
- func (r *CacheRepo) Destroy(accountID string) (int, error)
- func (r *CacheRepo) Get(accountID string, ID string) (*models.Bin, error)
- func (r *CacheRepo) GetAll(accountID string, opts *gModels.QueryOpts) ([]*models.Bin, error)
- func (r *CacheRepo) Update(accountID string, ID string, bin *models.Bin) (int, error)
- type PostgresRepo
- func (r *PostgresRepo) Create(accountID string, bin *models.Bin) error
- func (r *PostgresRepo) Delete(accountID string, ID string) (int, error)
- func (r *PostgresRepo) Destroy(accountID string) (int, error)
- func (r *PostgresRepo) Get(accountID string, ID string) (*models.Bin, error)
- func (r *PostgresRepo) GetAll(accountID string, opts *gModels.QueryOpts) ([]*models.Bin, error)
- func (r *PostgresRepo) Update(accountID string, ID string, bin *models.Bin) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheRepo ¶
CacheRepo ..
type PostgresRepo ¶
PostgresRepo provides the database connection
func (*PostgresRepo) Create ¶
func (r *PostgresRepo) Create(accountID string, bin *models.Bin) error
Create inserts a new bin to the table
func (*PostgresRepo) Delete ¶
func (r *PostgresRepo) Delete(accountID string, ID string) (int, error)
Delete removes a bin associated with the account
func (*PostgresRepo) Destroy ¶
func (r *PostgresRepo) Destroy(accountID string) (int, error)
Destroy removes all bins associated with the account
Click to show internal directories.
Click to hide internal directories.