heroku

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DisplayName      = "Heroku"
	HandlerKey       = "heroku"
	MessageDirection = "out"
)

Variables

This section is empty.

Functions

func ExampleMessage

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

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 Handler

type Handler struct {
	Config     config.Configuration
	GlipClient glipwebhook.GlipWebhookClient
	Adapter    adapters.Adapter
}

FastHttp request handler for Heroku outbound webhook https://devcenter.heroku.com/articles/deploy-hooks#http-post-hook

func NewHandler

func NewHandler(cfg config.Configuration, adapter adapters.Adapter) Handler

FastHttp request handler constructor for Confluence outbound webhook

func (*Handler) HandleFastHTTP

func (h *Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)

HandleFastHTTP is the method to respond to a fasthttp request.

func (Handler) HandlerKey

func (h Handler) HandlerKey() string

func (Handler) MessageDirection

func (h Handler) MessageDirection() string

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 HerokuOutMessageFromQueryString

func HerokuOutMessageFromQueryString(queryString string) (HerokuOutMessage, error)

Jump to

Keyboard shortcuts

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