You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unlock-music-cli/algo/common/common.go

22 lines
331 B
Go

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