server

package
v0.0.0-...-2bd5d14 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RABBITMQ_QUEUE_NAME = "test_queue"

	DB_DRIVER_NAME = "postgres"
)

Variables

This section is empty.

Functions

func ConsumeMessage

func ConsumeMessage(ctx context.Context, d rabbitmq.RabbitDelivery) error

Example of consume You can provide any logic in this callback for each received message

Requeue received message If it was requeued already - just Ack this

func Run

func Run(ctx context.Context)

func RunMigrations

func RunMigrations(log logger.Logger, db *sql.DB, databaseName string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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