2022-11-19 07:25:40 +08:00

22 lines
331 B
Go

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