Documentation ¶
Overview ¶
Copyright © 2023 Philipp Wolfer <phw@uploadedlobster.com>
This file is part of Scotty.
Scotty is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Scotty is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Scotty. If not, see <https://www.gnu.org/licenses/>.
Index ¶
- func Authenticate(service string, backend models.Backend, db storage.Database, ...) (bool, error)
- func BuildRedirectURL(config *viper.Viper, backend string) (*url.URL, error)
- func ImplementsInterface[T interface{}](backend *models.Backend) (bool, string)
- func NewDatabaseTokenSource(db storage.Database, service string, config *oauth2.Config, tok *oauth2.Token) oauth2.TokenSource
- func ProcessListensImports(importer models.ListensImport, results chan models.ListensResult, ...)
- func ProcessLovesImports(importer models.LovesImport, results chan models.LovesResult, ...)
- func ResolveBackend[T interface{}](config *viper.Viper) (T, error)
- type BackendInfo
- type Capability
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authenticate ¶
func BuildRedirectURL ¶
func ImplementsInterface ¶
func NewDatabaseTokenSource ¶
func ProcessListensImports ¶
func ProcessListensImports(importer models.ListensImport, results chan models.ListensResult, out chan models.ImportResult, progress chan models.Progress)
func ProcessLovesImports ¶
func ProcessLovesImports(importer models.LovesImport, results chan models.LovesResult, out chan models.ImportResult, progress chan models.Progress)
func ResolveBackend ¶
Types ¶
type BackendInfo ¶
type BackendInfo struct { Name string ExportCapabilities []Capability ImportCapabilities []Capability }
func GetBackends ¶
func GetBackends() []BackendInfo
type Capability ¶
type Capability = string