events

package
v0.0.0-...-7e31de2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 1 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[T any] struct {
	ID        string    `json:"id"`
	Payload   T         `json:"payload"`
	Version   string    `json:"version"`
	CreatedAt time.Time `json:"created_at"`
}

type FinishedEvent

type FinishedEvent struct {
	Type       string `json:"type"`
	TrackingId string `json:"tracking_id"`
	Status     string `json:"status"`
}

type NewDepositEvent

type NewDepositEvent struct {
	Type       string    `json:"type"`
	ID         string    `json:"id"`
	TrackingId string    `json:"tracking_id"`
	IBAN       string    `json:"IBAN"`
	Gateway    string    `json:"gateway"`
	Amount     string    `json:"amount"`
	CreatedAt  time.Time `json:"created_at"`
	UpdatedAt  time.Time `json:"updated_at"`
}

type ProcessingEvent

type ProcessingEvent struct {
	Type       string `json:"type"`
	TrackingId string `json:"tracking_id"`
}

Jump to

Keyboard shortcuts

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