Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.14 KB

README.md

File metadata and controls

30 lines (19 loc) · 1.14 KB

go-meeko-webhook-receiver

Build Status Coverage Status

go-meeko helper for implementing webhook collectors.

This package takes care of some boilerplate code while implementing webhook collectors for Meeko. All that is necessary is to pass a http.Handler into ListenAndServe and the rest will be taken care of.

Usage

import "github.com/meeko-contrib/go-meeko-webhook-receiver/receiver"

Agent Configuration

There are two variables that must be defined for ListenAndServe to work:

  • LISTEN_ADDRESS - the network address to listen on, format HOST:[PORT]
  • ACCESS_TOKEN - the access token that must be present in all the POST request as a parameter, otherwise the request is rejected

These should be included in .meeko/agent.json as other variables.

License

MIT, see the LICENSE file.