debuglog

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Component        string           `json:"component"`
	Stage            Stage            `json:"stage"`
	Operation        string           `json:"operation"`
	Provider         payment.Provider `json:"provider,omitempty"`
	Channel          payment.Channel  `json:"channel,omitempty"`
	MerchantKey      string           `json:"merchant_key,omitempty"`
	PaymentID        string           `json:"payment_id,omitempty"`
	OrderID          string           `json:"order_id,omitempty"`
	OutTradeNo       string           `json:"out_trade_no,omitempty"`
	ProviderTradeID  string           `json:"provider_trade_id,omitempty"`
	RefundID         string           `json:"refund_id,omitempty"`
	OutRefundNo      string           `json:"out_refund_no,omitempty"`
	ProviderRefundID string           `json:"provider_refund_id,omitempty"`
	Request          any              `json:"request,omitempty"`
	Response         any              `json:"response,omitempty"`
	Err              error            `json:"-"`
}

type Func

type Func func(ctx context.Context, event Event)

func (Func) DebugPayment

func (fn Func) DebugPayment(ctx context.Context, event Event)

type Logger

type Logger interface {
	DebugPayment(ctx context.Context, event Event)
}

type PayloadMode

type PayloadMode string
const (
	PayloadNone PayloadMode = ""
	PayloadFull PayloadMode = "full"
)

type Stage

type Stage string
const (
	StageRequest  Stage = "request"
	StageResponse Stage = "response"
	StageError    Stage = "error"
)

Jump to

Keyboard shortcuts

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