This repository has been archived on 2025-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
Files
cli/algo/common/interface.go
2022-12-06 21:52:16 +08:00

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)
}