heroku

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisplayName      = "Heroku"
	HandlerKey       = "heroku"
	MessageDirection = "out"
	MessageBodyType  = models.URLEncoded
	WebhookDocsURL   = "https://devcenter.heroku.com/articles/app-webhooks-tutorial"
)

Variables

This section is empty.

Functions

func ExampleMessage

func ExampleMessage(cfg config.Configuration, data util.ExampleData) (cc.Message, error)

func NewHandler

func NewHandler() handlers.Handler

func Normalize

func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)

func Normalize(src HerokuOutMessage) glipwebhook.GlipWebhookMessage {

func NormalizeHerokuMessage

func NormalizeHerokuMessage(cfg config.Configuration, src HerokuOutMessage) (cc.Message, error)

Types

type HerokuOutMessage

type HerokuOutMessage struct {
	App      string `json:"app,omitempty"`
	User     string `json:"user,omitempty"`
	URL      string `json:"url,omitempty"`
	Head     string `json:"head,omitempty"`
	HeadLong string `json:"head_long,omitempty"`
	PrevHead string `json:"prev_head,omitempty"`
	GitLog   string `json:"git_log,omitempty"`
	Release  string `json:"release,omitempty"`
}

func BuildInboundMessage

func BuildInboundMessage(ctx *fasthttp.RequestCtx) (HerokuOutMessage, error)

func HerokuOutMessageFromQuery

func HerokuOutMessageFromQuery(queryString []byte) (HerokuOutMessage, error)

Jump to

Keyboard shortcuts

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