log

package
v0.0.0-...-0cf82f6 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConsumeOrderLogs

func ConsumeOrderLogs(consumer pulsar.Consumer)

func ConsumePaymentLogs

func ConsumePaymentLogs(consumer pulsar.Consumer)

func InitPulsar

func InitPulsar() error

InitPulsar initializes a new pulsarclient for the logger service and sarts consuming log messages produced by the payment and order services

func SaveOrderLogToDB

func SaveOrderLogToDB(logMessage *models.OrderLogMessage) error

func SavePaymentLogToDB

func SavePaymentLogToDB(logMessage models.PaymentLogMessage) error

func WriteOrderLogToLogFile

func WriteOrderLogToLogFile(logMessage *models.OrderLogMessage)

Types

This section is empty.

Jump to

Keyboard shortcuts

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