webhook

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AdvertiseURL string `json:"advertise_url" yaml:"advertise_url"`
	PathPrefix   string `json:"path_prefix" yaml:"path_prefix"`
}

Config options

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

Listener implements a replicant callback.Listener for http webhooks

func New

func New(c Config, router *httprouter.Router) (l *Listener)

New creates a new webhook listener for async callback based responses to replicant transactions

func (*Listener) Listen

func (l *Listener) Listen(ctx context.Context) (h *callback.Handle, err error)

Listen creates a handle for webhook based callbacks

Jump to

Keyboard shortcuts

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