aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/launchpad/launchpad.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-04 22:05:34 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:19:57 +0100
commit646fd681ffba59d4a74ec3d99558d2ed70b0106b (patch)
tree377a8b82701690fa1648d393a39034e0b6a77539 /bridge/launchpad/launchpad.go
parentf515b9a1291ddd3e4fe1b43bf5891ab19569e33f (diff)
downloadgit-bug-646fd681ffba59d4a74ec3d99558d2ed70b0106b.tar.gz
it compiles \o/
Diffstat (limited to 'bridge/launchpad/launchpad.go')
-rw-r--r--bridge/launchpad/launchpad.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/bridge/launchpad/launchpad.go b/bridge/launchpad/launchpad.go
index 030d9169..b4fcdd00 100644
--- a/bridge/launchpad/launchpad.go
+++ b/bridge/launchpad/launchpad.go
@@ -2,15 +2,34 @@
package launchpad
import (
+ "time"
+
"github.com/MichaelMure/git-bug/bridge/core"
)
+const (
+ target = "launchpad-preview"
+
+ metaKeyLaunchpadID = "launchpad-id"
+ metaKeyLaunchpadLogin = "launchpad-login"
+
+ keyProject = "project"
+
+ defaultTimeout = 60 * time.Second
+)
+
+var _ core.BridgeImpl = &Launchpad{}
+
type Launchpad struct{}
func (*Launchpad) Target() string {
return "launchpad-preview"
}
+func (l *Launchpad) LoginMetaKey() string {
+ return metaKeyLaunchpadLogin
+}
+
func (*Launchpad) NewImporter() core.Importer {
return &launchpadImporter{}
}