service

package
v0.0.0-...-028896a Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorBucketExists = errors.New("bucket already exists")

Functions

This section is empty.

Types

type FilesService

type FilesService interface {
	RegisterUser(ctx context.Context, bucketName string) error
	ListFiles(ctx context.Context, bucketName, dir string) ([]*pb.FileInfo, error)
	UploadFile(ctx context.Context, req *dto.UploadFileStreamRequest) error
	DownloadFile(ctx context.Context, bucketName, filePath string) (io.ReadCloser, error)
	RemoveFile(ctx context.Context, bucketName, filePath string) error
}

func New

func New(conf config.Minio) FilesService

Jump to

Keyboard shortcuts

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