service

package
v0.0.0-...-de0bd9f Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mock_service is a generated GoMock package.

Package service contains the logic that retrieves the LFP data and constructs the CSV file

Index

Constants

View Source
const (
	YYYYMMDD string = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockService) GetLFPCSV

func (m *MockService) GetLFPCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetLFPCSV mocks base method

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService

func (*MockServiceMockRecorder) GetLFPCSV

func (mr *MockServiceMockRecorder) GetLFPCSV(reconciliationMetaData interface{}) *gomock.Call

GetLFPCSV indicates an expected call of GetLFPCSV

type Service

type Service interface {
	GetLFPCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)
}

Service provides functionality by which to fetch lfp error CSV's

type ServiceImpl

type ServiceImpl struct {
	Config *config.Config
	DAO    dao.DAO
}

ServiceImpl provides a concrete implementation of the Service interface

func New

func New(cfg *config.Config) *ServiceImpl

New returns a new, concrete implementation of the Service interface

func (*ServiceImpl) GetLFPCSV

func (s *ServiceImpl) GetLFPCSV(reconciliationMetaData *models.ReconciliationMetaData) (models.CSV, error)

GetLFPCSV retrieves lfp data and constructs a CSV

Jump to

Keyboard shortcuts

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