webhooks

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCreateParams

type BatchCreateParams = repo_webhooks.CreateParams

type EventTransactionCreateParamsData

type EventTransactionCreateParamsData struct {
	Blockchain       wconstants.BlockchainType
	Tx               TransactionData
	Event            TransactionEventData
	WebhookKind      models.WebhookKind
	WalletType       constants.WalletType
	WebhookStatus    models.WebhookEventStatus
	OwnerID          uuid.UUID
	ExternalWalletID *string
	IsSystem         bool
}

type EventTransferStatusCreateParamsData

type EventTransferStatusCreateParamsData struct {
	IsSystem     bool
	TransferID   uuid.UUID
	OwnerID      uuid.UUID
	Status       constants.TransferStatus
	Step         string
	ErrorMessage string
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(
	log logger.Logger,
	conf *config.Config,
	store store.IStore,
	transfersService *transfers.Service,
	ownersService *owners.Service,
) *Service

func (*Service) BatchCreate

func (s *Service) BatchCreate(ctx context.Context, params []BatchCreateParams, opts ...repos.Option) error

BatchCreate creates multiple webhooks in batch.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, id uuid.UUID) error

Delete - deletes a webhook by its ID.

func (*Service) EventTransactionCreateParams

func (s *Service) EventTransactionCreateParams(ctx context.Context, params EventTransactionCreateParamsData) (BatchCreateParams, error)

EventTransactionCreateParams returns create params for a transaction event.

func (*Service) EventTransferStatusCreateParams

func (s *Service) EventTransferStatusCreateParams(ctx context.Context, params EventTransferStatusCreateParamsData) (BatchCreateParams, error)

EventTransferStatusCreateParams returns create params for a transfer status event.

func (*Service) WebhookServer

func (s *Service) WebhookServer() svc.IService

type TransactionData

type TransactionData struct {
	Hash          string
	Confirmations uint64
	Status        *string
	Fee           *string
	CreatedAt     time.Time
}

type TransactionEventData

type TransactionEventData struct {
	AddressFrom       *string
	AddressTo         *string
	Value             *string
	AssetIdentify     *string
	BlockchainUniqKey *string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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