mq

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package mq provides a FileHandler implementation for message queue sources. It supports any message queue system that implements the MessageQueueReader interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMQHandler

func NewMQHandler(
	mqURL string,
	bar *progressbar.ProgressBar,
	storage storage.Storage,
	limitLines int,
	collection string,
) (filehandler.FileHandler, error)

NewMQHandler creates a new message queue file handler

Types

type MQHandler

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

MQHandler implements FileHandler for message queue sources

func (*MQHandler) Close

func (h *MQHandler) Close() error

Close releases resources

func (*MQHandler) Import

func (h *MQHandler) Import() error

Import reads messages from the queue and imports them into storage

func (*MQHandler) Lines

func (h *MQHandler) Lines() int

Lines returns total lines (messages) count

Jump to

Keyboard shortcuts

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