manager

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Deprecated. in flavor of ./internal/typedefs/entities#Report Due to architecture change this type will be deleted soon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitReport

func InitReport(userId string)

Types

type Report

type Report struct {
	ID     string
	UserId string
}

func (*Report) CalculateCustomValues

func (r *Report) CalculateCustomValues()

func (*Report) GetData

func (r *Report) GetData(dataType string)

func (*Report) SetComplete

func (r *Report) SetComplete()

type ReportManager

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

func InitReportManager

func InitReportManager(
	connection *amqp091.Connection,
	channel *amqp091.Channel,
	db db.IDatabaseRepository,
) (*ReportManager, error)

func (*ReportManager) ConsumeMessages

func (rm *ReportManager) ConsumeMessages()

func (*ReportManager) CreateReportData

func (rm *ReportManager) CreateReportData(action typedefs.Action) error

func (*ReportManager) InitGatheringInformation

func (rm *ReportManager) InitGatheringInformation(
	message amqp091.Delivery,
	report *typedefs.Report,
) error

func (*ReportManager) SaveInitialReport

func (rm *ReportManager) SaveInitialReport(action typedefs.Action, m amqp091.Delivery) (*typedefs.Report, error)

Jump to

Keyboard shortcuts

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