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/common.go
2022-11-19 07:25:43 +08:00

26 lines
343 B
Go

package common
import (
"context"
"io"
)
type Decoder interface {
Validate() error
io.Reader
}
type CoverImageGetter interface {
GetCoverImage(ctx context.Context) ([]byte, error)
}
type Meta interface {
GetArtists() []string
GetTitle() string
GetAlbum() string
}
type StreamDecoder interface {
Decrypt(buf []byte, offset int)
}