webhook

package
v0.0.0-...-e82d05c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(secret string) http.Handler

NewHandler returns handler for GitHub webhook

func Register

func Register(name string, f Filter, op Operation)

Register registers Filter/Operation in the store

Types

type Filter

type Filter = func(event string) bool

Filter should return the event is catched or not

type Operation

type Operation = func(event string, payload []byte)

Operation is called when Filter returned true Each Operation will not called twice or more at the same time

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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