upload

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceUpload

type ServiceUpload interface {
	UploadMedia(ctx context.Context, name string, file io.Reader, contentType string) (*dto.Media, error)
}

ServiceUpload holds the upload service methods

type ServiceUploadImpl

type ServiceUploadImpl struct {
	Client storage.Client
}

ServiceUploadImpl represents upload service implementations

func NewServiceUpload

func NewServiceUpload(ctx context.Context) *ServiceUploadImpl

NewServiceUpload returns new instance of upload service

func (*ServiceUploadImpl) UploadMedia

func (u *ServiceUploadImpl) UploadMedia(ctx context.Context, name string, file io.Reader, contentType string) (*dto.Media, error)

UploadMedia uploads media to GCS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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