Documentation ¶
Index ¶
- func ConnectDB() (*pgx.Conn, error)
- type BucketBasics
- type Infrastructure
- func (i *Infrastructure) CloseDB() error
- func (i *Infrastructure) ConvertVideoHLS(ctx context.Context, songID string, s3URL string) error
- func (i *Infrastructure) NewDB() *sqlc.Queries
- func (i *Infrastructure) UploadFile(ctx context.Context, bucketName string, objectKey string, file io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BucketBasics ¶
func NewBucketBasics ¶
func NewBucketBasics() *BucketBasics
type Infrastructure ¶
type Infrastructure struct {
S3 *BucketBasics
}
func NewInfrastructure ¶
func NewInfrastructure() *Infrastructure
func (*Infrastructure) CloseDB ¶
func (i *Infrastructure) CloseDB() error
func (*Infrastructure) ConvertVideoHLS ¶
func (*Infrastructure) NewDB ¶
func (i *Infrastructure) NewDB() *sqlc.Queries
func (*Infrastructure) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.