webhook

package
v0.0.0-...-e479ca6 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateUnsafeHash

func CalculateUnsafeHash(secret string) string

func ExtractSign

func ExtractSign(r *http.Request, esp string) (string, error)

func F

func Send

func Send(payload []byte) error

func ValidateBody

func ValidateBody(r *http.Request) ([]byte, error)

func ValidateUrlPath

func ValidateUrlPath(path string) (int, int, string, string, error)

Types

type PubSubElement

type PubSubElement struct {
	CompanyID     int
	ESP           string
	ESPJsonString string
	Ts            int64
	SafeHash      string
	Sign          string // Sign hash where applicable
}

Jump to

Keyboard shortcuts

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