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.
30 lines
438 B
Go
30 lines
438 B
Go
package common
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
type StreamDecoder interface {
|
|
Decrypt(buf []byte, offset int)
|
|
}
|
|
|
|
type Decoder interface {
|
|
Validate() error
|
|
io.Reader
|
|
}
|
|
|
|
type CoverImageGetter interface {
|
|
GetCoverImage(ctx context.Context) ([]byte, error)
|
|
}
|
|
|
|
type AudioMeta interface {
|
|
GetArtists() []string
|
|
GetTitle() string
|
|
GetAlbum() string
|
|
}
|
|
|
|
type AudioMetaGetter interface {
|
|
GetAudioMeta(ctx context.Context) (AudioMeta, error)
|
|
}
|