Skip to content

Commit

Permalink
Add gmessagesv2
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 31, 2024
1 parent 0ecdb04 commit 2b3f053
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions bridges.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ const (
BridgeHungryserv BridgeType = "hungryserv"
BridgeDummy BridgeType = "dummybridge"
BridgeDummyWebsocket BridgeType = "dummybridgews"

BridgeGoogleMessagesV2 BridgeType = "gmessagesv2"
)

var defaultNotifications = []BridgeUpdateNotification{
Expand Down Expand Up @@ -80,9 +82,10 @@ var bridgeNotifications = map[BridgeType][]BridgeUpdateNotification{
{Environment: EnvStaging, Channel: ChannelStable, Bridge: BridgeSlack},
{Environment: EnvProduction, Channel: ChannelInternal, DeployNext: true, Bridge: BridgeSlack},
},
BridgeGoogleMessages: defaultNotifications,
BridgeLinkedIn: defaultNotifications,
BridgeHungryserv: defaultNotifications,
BridgeGoogleMessages: defaultNotifications,
BridgeGoogleMessagesV2: {},
BridgeLinkedIn: defaultNotifications,
BridgeHungryserv: defaultNotifications,
BridgeDummy: {
{Environment: EnvDevelopment, Channel: ChannelStable},
{Environment: EnvDevelopment, Channel: ChannelStable, Bridge: BridgeDummyWebsocket},
Expand All @@ -109,24 +112,26 @@ var bridgeNotifications = map[BridgeType][]BridgeUpdateNotification{
const DefaultImageTemplate = "{{.Image}}:{{.Commit}}-amd64"

var imageTemplateOverrides = map[BridgeType]string{
BridgeDummy: "{{.Image}}:{{.Commit}}",
BridgeGroupMe: "{{.Image}}:{{.Commit}}",
BridgeHungryserv: "{{.Image}}:{{.Commit}}",
BridgeLinkedIn: "{{.Image}}:{{.Commit}}",
BridgeiMessageCloud: "{{.Commit}}",
BridgeiMessagego: "{{.Image}}:{{.Commit}}",
BridgeSignalV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeSlackV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeTelegramV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeDummy: "{{.Image}}:{{.Commit}}",
BridgeGroupMe: "{{.Image}}:{{.Commit}}",
BridgeHungryserv: "{{.Image}}:{{.Commit}}",
BridgeLinkedIn: "{{.Image}}:{{.Commit}}",
BridgeiMessageCloud: "{{.Commit}}",
BridgeiMessagego: "{{.Image}}:{{.Commit}}",
BridgeSignalV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeSlackV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeGoogleMessagesV2: "{{.Image}}:v2-{{.Commit}}-amd64",
BridgeTelegramV2: "{{.Image}}:v2-{{.Commit}}-amd64",
}

const DefaultTargetRepoTemplate = "%s/bridge/%s"

var targetImageRepoOverrides = map[BridgeType]string{
BridgeHungryserv: "/hungryserv",
BridgeSignalV2: "/bridge/signal",
BridgeSlackV2: "/bridge/slackgo",
BridgeTelegramV2: "/bridge/telegramgo",
BridgeHungryserv: "/hungryserv",
BridgeSignalV2: "/bridge/signal",
BridgeSlackV2: "/bridge/slackgo",
BridgeGoogleMessagesV2: "/bridge/gmessages",
BridgeTelegramV2: "/bridge/telegramgo",
}

func (bridgeType BridgeType) NotificationTargets() []BridgeUpdateNotification {
Expand Down

0 comments on commit 2b3f053

Please sign in to comment.