listener

package
v0.0.0-...-1a6f680 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ForDefiPublicKey = "-----BEGIN PUBLIC KEY-----\n" +
	"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEQJ0NeDYQqqeCvgDofFsgtgaxk+dx\n" +
	"ybi63YGJwHz8Ebx7YQrmwNWnW3bG65E8wGHqZECjuaK2GKHbZx1EV2ws9A==\n" +
	"-----END PUBLIC KEY-----"

Variables

This section is empty.

Functions

func CreateHook

func CreateHook(handler EventHandler) func(w http.ResponseWriter, r *http.Request)

func GetPubKey

func GetPubKey() *ecdsa.PublicKey

func HandleWebHook

func HandleWebHook(w http.ResponseWriter, r *http.Request, handler EventHandler)

Types

type EventHandler

type EventHandler func(eventType string, transactionId string, state string)

Jump to

Keyboard shortcuts

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