api

package
v1.36.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessDeniedError = errors.New("Access Denied")
View Source
var BlockTransactionNotFound = errors.New("BlockTransaction not found, it should exist for this webhook to be received")
View Source
var CouldNotConvertToBigInt = errors.New("BlockTransaction Value could not be converted")

Functions

func Route

func Route(router router.Router, args ...gin.HandlerFunc)

Wire up stripe endpoint

func Webhook

func Webhook(c *gin.Context)

Handle stripe webhook POSTs

Types

type Event

type Event struct {
	Name     string `json:"name"`
	Type     Type   `json:"type"`
	Password string `json:"password"`

	DataId   string        `json:"dataId"`
	DataKind Kind          `json:"dataKind"`
	Data     ej.RawMessage `json:"data"`
}

type Kind

type Kind string
const (
	BlockKind        Kind = "block"
	BlockAddress     Kind = "blockaddress"
	BlockTransaction Kind = "blocktransaction"
)

Jump to

Keyboard shortcuts

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