audio

package
v0.0.0-...-4f3d646 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundErr = errors.New("audio not found")

Functions

func ValidMp3File

func ValidMp3File(header *multipart.FileHeader) (err error)

Types

type DatabaseService

type DatabaseService struct {
	Database db.MongodbService
}

TODO Change service into singleton

func (DatabaseService) AudioFilesInfo

func (a DatabaseService) AudioFilesInfo(ctx context.Context, searchType, value string, page int) (info []api.AudioFileInfo, err error)

func (DatabaseService) Delete

func (a DatabaseService) Delete(ctx context.Context, id string) (err error)

func (DatabaseService) Get

func (a DatabaseService) Get(ctx context.Context, id string) (result db.AudioInfo, err error)

type UploadService

type UploadService struct {
	Db db.MongodbService
}

func (UploadService) Upload

func (u UploadService) Upload(ctx context.Context, files []*multipart.FileHeader) error

Jump to

Keyboard shortcuts

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