Documentation ¶
Index ¶
- Constants
- func ExampleMessage(cfg config.Configuration, data util.ExampleData) (cc.Message, error)
- func NewHandler() handlers.Handler
- func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
- func NormalizeHerokuMessage(cfg config.Configuration, src HerokuOutMessage) (cc.Message, error)
- type HerokuOutMessage
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 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)
Click to show internal directories.
Click to hide internal directories.