git-bug/bridge/launchpad/launchpad.go

40 lines
687 B
Go
Raw Normal View History

2019-01-17 05:09:08 +03:00
// Package launchpad contains the Launchpad bridge implementation
package launchpad
import (
2020-02-05 00:05:34 +03:00
"time"
"github.com/MichaelMure/git-bug/bridge/core"
)
2020-02-05 00:05:34 +03:00
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"
}
2020-02-05 00:05:34 +03:00
func (l *Launchpad) LoginMetaKey() string {
return metaKeyLaunchpadLogin
}
func (*Launchpad) NewImporter() core.Importer {
return &launchpadImporter{}
}
func (*Launchpad) NewExporter() core.Exporter {
return nil
}