heroku

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisplayName      = "Heroku"
	HandlerKey       = "heroku"
	MessageDirection = "out"
	MessageBodyType  = models.URLEncoded
)

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, bytes []byte) (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 added in v0.2.0

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

Jump to

Keyboard shortcuts

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