webhook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

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

Webhook handles a segments.io webhook payload.

func NewWebhook

func NewWebhook(ctx context.Context, logger *zap.Logger, client *axiom.Client) (*Webhook, error)

NewWebhook creates a new Webhook.

func (*Webhook) ServeHTTP

func (w *Webhook) ServeHTTP(resp http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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