aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/github.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-21 18:23:46 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-21 18:53:44 +0200
commit921cd18cf98ecfc1f7fa82f57d64f1b1f9077e64 (patch)
treedfd7fea5be54c6020ed6773fbdefbaeb5cd2a78e /bridge/github/github.go
parent82eaceffc1d750832a2a66f206749d2dca968cce (diff)
downloadgit-bug-921cd18cf98ecfc1f7fa82f57d64f1b1f9077e64.tar.gz
bridge: better interfaces, working github configurator
Diffstat (limited to 'bridge/github/github.go')
-rw-r--r--bridge/github/github.go28
1 files changed, 27 insertions, 1 deletions
diff --git a/bridge/github/github.go b/bridge/github/github.go
index 0238b4bf..45954e23 100644
--- a/bridge/github/github.go
+++ b/bridge/github/github.go
@@ -1,4 +1,30 @@
package github
-type github struct {
+import (
+ "github.com/MichaelMure/git-bug/bridge/core"
+ "github.com/MichaelMure/git-bug/cache"
+)
+
+type Github struct{}
+
+func (*Github) Name() string {
+ return "github"
+}
+
+func (*Github) Importer() core.Importer {
+ return &githubImporter{}
+}
+
+func (*Github) Exporter() core.Exporter {
+ return nil
+}
+
+type githubImporter struct{}
+
+func (*githubImporter) ImportAll(repo *cache.RepoCache, conf core.Configuration) error {
+ panic("implement me")
+}
+
+func (*githubImporter) Import(repo *cache.RepoCache, conf core.Configuration, id string) error {
+ panic("implement me")
}