mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 06:48:56 +00:00
21 lines
391 B
Go
21 lines
391 B
Go
|
// Copyright 2023 The Forgejo Authors
|
||
|
// SPDX-License-Identifier: MIT
|
||
|
|
||
|
package migrations
|
||
|
|
||
|
import (
|
||
|
"code.gitea.io/gitea/modules/structs"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
RegisterDownloaderFactory(&ForgejoDownloaderFactory{})
|
||
|
}
|
||
|
|
||
|
type ForgejoDownloaderFactory struct {
|
||
|
GiteaDownloaderFactory
|
||
|
}
|
||
|
|
||
|
func (f *ForgejoDownloaderFactory) GitServiceType() structs.GitServiceType {
|
||
|
return structs.ForgejoService
|
||
|
}
|