Categorygithub.com/whosonfirst/go-webhookd-aws

# README

go-webhookd-aws

Go package to implement the whosonfirst/go-webhookd interfaces for dispatching webhooks originating from GitHub to AWS services.

Documentation

Go Reference

Before you begin please read the go-webhookd documentation for an overview of concepts and principles.

Usage

import (
	_ "github.com/go-webhookd-aws/v2"
)

Dispatchers

Lambda

The Lambda dispatcher will send messages to an Amazon Web Services (ASW) Lambda function. It is defined as a URI string in the form of:

lambda://{FUNCTION}?dsn={DSN}&invocation_type={INVOCATION_TYPE}

Properties

NameValueDescriptionRequired
dsnstringA valid aaronland/go-aws-session DSN string.yes
functionstringThe name of your Lambda function.yes
invocation_typestringA valid AWS Lambda Invocation Type string.no
halt_on_messagestringAn optional regular expression that will be compared to the commit message; if it matches the transformer will return an error with code webhookd.HaltEventno
halt_on_authorstringAn optional regular expression that will be compared to the commit author; if it matches the transformer will return an error with code webhookd.HaltEventno

Important

whosonfirst/go-webhookd-aws/v2 and higher is backwards incompatible with whosonfirst/go-webhookd-aws "v1". Importantly the ability to run a webhookd server as an AWS Lambda has been merged back in to whosonfirst/go-webhookd/v2 (and higher). This package only manages AWS specific dispatchers now.

See also

# Packages

package aws implements the `whosonfirst/go-webhookd` interfaces for dispatching webhooks originating from GitHub to AWS services.