refactor: remove logging in algorithms
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user