customercontroller

package module
v0.0.0-...-8b0bed9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FUNCTION_NAME       = "customer-controller"
	PUBLISH_TIMEOUT_SEC = 2 * time.Second
)

Variables

This section is empty.

Functions

func OrderAndPaymentWatcher

func OrderAndPaymentWatcher(ctx context.Context, e event.Event) error

OrderAndPaymentWatcher listens to internal order/payment events; it should scan and see if they have a customer ID that we don't know about if we don't have it, we should fetch and create the event upon getting the value from Square

func ProcessCDCEvent

func ProcessCDCEvent(ctx context.Context, e event.Event) error

ProcessCDCEvent generates internal domain events from changes to firestore customers collection

func ProcessSquareCustomerWebhookEvent

func ProcessSquareCustomerWebhookEvent(ctx context.Context, e event.Event) error

ProcessSquareCustomerWebhookEvent

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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