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