webhook

package
v0.0.0-...-77c56fa Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotNeedToCheck     = errors.New("not need to check")
	CannotStartToCheck = errors.New("can't start checking, redis is empty")
	EmptyResponse      = errors.New("empty response")
)

Functions

func StartCheck

func StartCheck(whData *WebhookData, startStatus metrics.Status) error

StartCheck starts periodically checking the status of transaction

Types

type CheckResponse

type CheckResponse struct {
	Status metrics.Status `json:"status"`
}

type WebhookData

type WebhookData struct {
	YooKassaTransactionID string                       `json:"yooKassaTransactionID"`
	YouKassaConfirmation  metrics.YouKassaConfirmation `json:"youKassaConfirmation"`
	ServerUUID            uuid.UUID                    `json:"serverUUID"`
}

func NewWebhookData

func NewWebhookData(yooKassaID string, serverUUID uuid.UUID) *WebhookData

Jump to

Keyboard shortcuts

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