infra

package
v0.0.0-...-db501e4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB() (*pgx.Conn, error)

Types

type BucketBasics

type BucketBasics struct {
	S3Client *s3.Client
}

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 (i *Infrastructure) ConvertVideoHLS(ctx context.Context, songID string, s3URL string) error

func (*Infrastructure) NewDB

func (i *Infrastructure) NewDB() *sqlc.Queries

func (*Infrastructure) UploadFile

func (i *Infrastructure) UploadFile(ctx context.Context, bucketName string, objectKey string, file io.Reader) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL