Documentation
¶
Index ¶
- func MigrateDown(ctx context.Context, sqlDB *sql.DB) error
- func MigrateUp(ctx context.Context, sqlDB *sql.DB) error
- func NewDB(ctx context.Context, dbDSN string) (*sql.DB, func() error, error)
- type FileRepo
- type ListingItemRepo
- func (repo *ListingItemRepo) Get(ctx context.Context, itemID string) (*listing.Item, error)
- func (repo *ListingItemRepo) Insert(ctx context.Context, item *listing.Item) error
- func (repo *ListingItemRepo) List(ctx context.Context, req *listing.ListItemsRequest) ([]*listing.Item, error)
- func (repo *ListingItemRepo) Replace(ctx context.Context, itemID string, item *listing.Item) error
- type ListingLocationRepo
- func (repo *ListingLocationRepo) Get(ctx context.Context, locationID string) (*listing.Location, error)
- func (repo *ListingLocationRepo) Insert(ctx context.Context, location *listing.Location) error
- func (repo *ListingLocationRepo) List(ctx context.Context) ([]*listing.Location, error)
- func (repo *ListingLocationRepo) Replace(ctx context.Context, locationID string, location *listing.Location) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileRepo ¶
type FileRepo struct {
// contains filtered or unexported fields
}
func NewFileRepo ¶
type ListingItemRepo ¶
type ListingItemRepo struct {
// contains filtered or unexported fields
}
func NewListingItemRepo ¶
func NewListingItemRepo(db *sql.DB) *ListingItemRepo
func (*ListingItemRepo) List ¶
func (repo *ListingItemRepo) List(ctx context.Context, req *listing.ListItemsRequest) ([]*listing.Item, error)
type ListingLocationRepo ¶
type ListingLocationRepo struct {
// contains filtered or unexported fields
}
func NewListingLocationRepo ¶
func NewListingLocationRepo(db *sql.DB) *ListingLocationRepo
Click to show internal directories.
Click to hide internal directories.