refactor: remove logging in algorithms

This commit is contained in:
Unlock Music Dev
2022-11-19 07:25:40 +08:00
parent a2c55721cc
commit e2fc56ddb2
8 changed files with 50 additions and 74 deletions

View File

@ -1,14 +1,19 @@
package common
import "context"
type Decoder interface {
Validate() error
Decode() error
GetCoverImage() []byte
GetAudioData() []byte
GetAudioExt() string
GetMeta() Meta
}
type CoverImageGetter interface {
GetCoverImage(ctx context.Context) ([]byte, error)
}
type Meta interface {
GetArtists() []string
GetTitle() string

View File

@ -28,10 +28,6 @@ func (d RawDecoder) Decode() error {
return nil
}
func (d RawDecoder) GetCoverImage() []byte {
return nil
}
func (d RawDecoder) GetAudioData() []byte {
return d.file
}