builder

package
v0.0.0-...-3d20527 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildComplete

func BuildComplete(config client.ClientConfig, data types.ReadOnlyData) (types.Data, bool)

func BuildFromHook

func BuildFromHook(config client.ClientConfig, r *http.Request) (types.HookData, bool)

func RegisterNewDataBuilder

func RegisterNewDataBuilder(provider string, builder DataBuilder)

Types

type DataBuilder

type DataBuilder interface {
	BuildFromHook(config client.ClientConfig, r *http.Request) (types.HookData, bool, error)
	BuildFromPayload(config client.ClientConfig, ofType string, payload []byte) (types.Data, bool, error)
}

Jump to

Keyboard shortcuts

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