Documentation ¶
Index ¶
- func NewAthenaQueryAdapter(ctx context.Context, region, database, table, s3OutputLocation string) (repository.AthenaQueryRepository, error)
- func NewPhotoImagePersistence(ctx context.Context, region, bucket string) (repository.PhotoImageRepository, error)
- func NewPhotoMetadataPersistence(conn *gorm.DB) repository.PhotoMetadataRepository
- func NewQueryAdapter(conn *gorm.DB) repository.QueryRepository
- func NewTripMetadataPersistence(conn *gorm.DB) repository.TripMetadataStoreRepository
- func NewUserPersistence(conn *gorm.DB) repository.UserRepository
- type AthenaQueryAdapter
- type PhotoMetadataPersistence
- type QueryAdapter
- type TripMetadataPersistence
- type UserPersistence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAthenaQueryAdapter ¶
func NewAthenaQueryAdapter(ctx context.Context, region, database, table, s3OutputLocation string) (repository.AthenaQueryRepository, error)
func NewPhotoImagePersistence ¶
func NewPhotoImagePersistence(ctx context.Context, region, bucket string) (repository.PhotoImageRepository, error)
func NewPhotoMetadataPersistence ¶
func NewPhotoMetadataPersistence(conn *gorm.DB) repository.PhotoMetadataRepository
func NewQueryAdapter ¶
func NewQueryAdapter(conn *gorm.DB) repository.QueryRepository
func NewTripMetadataPersistence ¶
func NewTripMetadataPersistence(conn *gorm.DB) repository.TripMetadataStoreRepository
func NewUserPersistence ¶
func NewUserPersistence(conn *gorm.DB) repository.UserRepository
Types ¶
type AthenaQueryAdapter ¶
type PhotoMetadataPersistence ¶
type PhotoMetadataPersistence struct {
// contains filtered or unexported fields
}
type QueryAdapter ¶
type QueryAdapter struct {
// contains filtered or unexported fields
}
func (*QueryAdapter) Fetch ¶
func (qa *QueryAdapter) Fetch(rawQuery string, args []interface{}, scanType interface{}) (interface{}, error)
type TripMetadataPersistence ¶
type TripMetadataPersistence struct {
// contains filtered or unexported fields
}
func (*TripMetadataPersistence) Create ¶
func (tp *TripMetadataPersistence) Create(trip *model.Trip) error
func (*TripMetadataPersistence) FindByDateAndUnit ¶
type UserPersistence ¶
type UserPersistence struct {
// contains filtered or unexported fields
}
func (*UserPersistence) FindByEmail ¶
Click to show internal directories.
Click to hide internal directories.