Documentation
¶
Index ¶
Constants ¶
View Source
const ( LoggerNotificationCentrifugo = "Send message to centrifugo failed" LoggerNotificationSlack = "Send message to slack failed" LoggerNotificationRedis = "Set stat in redis failed" NotificationActionCheck = "check" NotificationActionPayment = "payment" NotificationActionCheckUser = "check_user" RetryDlxTimeout = 600 WaitRetryDlxTimeout = 60 WaitRetryMaxCount = 10 RetryExchangeName = "notify-payment-retry" RetryMaxCount = 288 RetryBillingDlxTimeout = 60 RetryBillingExchangeName = "notify-payment-billing-retry" RetryBillingMaxCount = 10 CountryCodeUSA = "US" )
View Source
const (
AmountPrecisionDefault = int64(2)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { RetryCount int32 // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler( o *billingpb.Order, rep billingpb.BillingService, retBrok rabbitmq.BrokerInterface, retBillingBrok rabbitmq.BrokerInterface, taxjarTransactionsBroker rabbitmq.BrokerInterface, taxjarRefundsBroker rabbitmq.BrokerInterface, redis redis.Cmdable, dlv amqp.Delivery, cfg *config.Config, centrifugoPaymentForm centrifugo.CentrifugoInterface, centrifugoDashboard centrifugo.CentrifugoInterface, sender http_sender.HttpSender, httpClient *http.Client, slack slack.SenderInterface, waitRetryBroker rabbitmq.BrokerInterface, ) *Handler
func (*Handler) GetNotifier ¶
type NotificationStat ¶
type NotificationStat struct { StatKey string // contains filtered or unexported fields }
func (*NotificationStat) Get ¶
func (ns *NotificationStat) Get(key string) bool
Click to show internal directories.
Click to hide internal directories.