Documentation
¶
Index ¶
Constants ¶
View Source
const ( WebhookSendStatusFailed string = "failed" WebhookSendStatusSuccess string = "success" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IWebHook ¶
type IWebHook interface {
Run(ctx context.Context)
Send(message *Message, dbTx pgx.Tx) error
ProcessPlainMessage(ctx context.Context, dto PreparedHookDto) error
SendWebhook(ctx context.Context, url string, payload []byte, sign string) (Result, error)
GetHistory(ctx context.Context, user models.User, storeUUIDs []uuid.UUID, page, pageSize *uint32) (*storecmn.FindResponseWithPagingFlag[*repo_webhook_send_histories.FindRow], error)
}
type PreparedHookDto ¶
type StoreWhResponse ¶
type StoreWhResponse struct {
Success bool `json:"success"`
}
Click to show internal directories.
Click to hide internal directories.