webhook

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeBody

func EncodeBody(requestBody io.Reader) (string, bool)

Types

type Response

type Response struct {
	StatusCode      int         `json:"statusCode"`
	Headers         http.Header `json:"headers"`
	Body            string      `json:"body"`
	IsBase64Encoded bool        `json:"isBase64Encoded"`
}

type Webhook

type Webhook struct {
	Headers map[string]string `json:"headers"`
	URL     string            `json:"url"`
}

func (*Webhook) Run

func (a *Webhook) Run(ctx context.Context, payload string) ([]byte, error)

Jump to

Keyboard shortcuts

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