You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
535 B

package plugins
import (
"context"
"github.com/wailsapp/wails/v2"
. "ytd/models"
)
type Plugin interface {
GetName() string
Initialize() error
GetDir() string
SetDir(dir string)
IsTrackFileExists(track GenericTrack, fileType string) bool
Fetch(url string, isFromClipboard bool) *GenericEntry
StartDownload(ytEntry *GenericEntry) GenericEntry
GetFilename() error
Supports(address string) bool
SetWailsRuntime(*wails.Runtime)
SetContext(context.Context)
SetAppConfig(config *AppConfig)
SetAppStats(stats *AppStats)
}