discord_notification_function

package module
v0.0.0-...-6337f9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

README

discord-notification-function

gcp function to take messages from pub/sub and post build status updates to discord

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildMessage

func GetBuildMessage(w http.ResponseWriter, r *http.Request)

Types

type AttributesBlock

type AttributesBlock struct {
	BuildID string `json:"buildID"`
	Status  string `json:"status"`
}

type DiscordMessage

type DiscordMessage struct {
	Content string `json:"content"`
}

type MessageBlock

type MessageBlock struct {
	Attributes AttributesBlock `json:"attributes"`
	Data       string          `json:"data"`
	MessageID  string          `json:"message_id"`
}

type PubSubMessage

type PubSubMessage struct {
	Message      MessageBlock `json:"message"`
	Subscription string       `json:"subscription"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL