feat(blogo,forgejo): inital commit for plugin blogo-forgejo
This commit is contained in:
29
blogo/forgejo/forgejo.go
Normal file
29
blogo/forgejo/forgejo.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package forgejo
|
||||
|
||||
import (
|
||||
"forge.capytal.company/loreddev/x/blogo"
|
||||
)
|
||||
|
||||
const pluginName = "blogo-forgejo"
|
||||
|
||||
type plugin struct {
|
||||
owner string
|
||||
repo string
|
||||
}
|
||||
type Opts struct {
|
||||
Ref string
|
||||
}
|
||||
|
||||
func New(owner, repo, apiUrl string, opts ...Opts) blogo.Plugin {
|
||||
opt := Opts{}
|
||||
if len(opts) > 0 {
|
||||
opt = opts[0]
|
||||
}
|
||||
|
||||
return &plugin{
|
||||
}
|
||||
}
|
||||
|
||||
func (p *plugin) Name() string {
|
||||
return pluginName
|
||||
}
|
||||
9
blogo/forgejo/source.go
Normal file
9
blogo/forgejo/source.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package forgejo
|
||||
|
||||
import (
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
func (p *plugin) Source() (fs.FS, error) {
|
||||
return nil, nil
|
||||
}
|
||||
Reference in New Issue
Block a user