service

package
v0.0.0-...-62c273f Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

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

Impl is a concrete implementation of the Service interface.

func (*Impl) GetStatisticsReport

func (s *Impl) GetStatisticsReport(dataDescription string) *models.CSV

GetStatisticsReport returns a CSV version of the StatisticsReport struct, which is comprised of transactions data.

func (*Impl) Shutdown

func (s *Impl) Shutdown()

Shutdown calls the mongo client implementation of the method.

type Service

type Service interface {
	GetStatisticsReport(dataDescription string) *models.CSV
	Shutdown()
}

Service provides an interface to retrieve statistics in a CSV format.

func NewService

func NewService(cfg *config.Config) Service

NewService returns a new service interface implementation.

Jump to

Keyboard shortcuts

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