#8 implement interface Source and methods for gitea without Update
This commit is contained in:
15
internal/source/gogs/gogs.go
Normal file
15
internal/source/gogs/gogs.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package gogs
|
||||
|
||||
type Gogs struct {
|
||||
Token string
|
||||
}
|
||||
|
||||
func NewGogs(t string) *Gogs {
|
||||
return &Gogs{
|
||||
Token: t,
|
||||
}
|
||||
}
|
||||
|
||||
func (g *Gogs) RequestOpen() {}
|
||||
func (g *Gogs) RequestClose() {}
|
||||
func (g *Gogs) RequestUpdate() {}
|
Reference in New Issue
Block a user