Documentation ¶
Index ¶
- type Client
- func (c *Client) Close() error
- func (c *Client) GetAgenciesCount() (int, error)
- func (c *Client) GetAllAgencyCollection(agency string) ([]models.AgencyMonthlyInfo, error)
- func (c *Client) GetAnnualSummary(agency string) ([]models.AnnualSummary, error)
- func (c *Client) GetFirstDateWithMonthlyInfo() (int, int, error)
- func (c *Client) GetIndexInformation(name string, month, year int) (map[string][]models.IndexInformation, error)
- func (c *Client) GetLastDateWithMonthlyInfo() (int, int, error)
- func (c *Client) GetNumberOfMonthsCollected() (int, error)
- func (c *Client) GetOMA(month int, year int, agency string) (*models.AgencyMonthlyInfo, *models.Agency, error)
- func (c *Client) GetOPJ(group string) ([]models.Agency, error)
- func (c *Client) GetStateAgencies(uf string) ([]models.Agency, error)
- func (c *Client) Store(agmi models.AgencyMonthlyInfo) error
- func (c *Client) StorePaychecks(p []models.Paycheck, r []models.PaycheckItem) error
- func (c *Client) StoreRemunerations(remu models.Remunerations) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Db database.Interface Cloud file_storage.Interface }
Client is composed by mongoDbClient and Cloud5 client (used for backup).
func (*Client) GetAgenciesCount ¶
GetAgenciesCount Return the Agencies amount
func (*Client) GetAllAgencyCollection ¶
func (c *Client) GetAllAgencyCollection(agency string) ([]models.AgencyMonthlyInfo, error)
Get all agency collection
func (*Client) GetAnnualSummary ¶
func (c *Client) GetAnnualSummary(agency string) ([]models.AnnualSummary, error)
func (*Client) GetFirstDateWithMonthlyInfo ¶
GetFirstDateWithMonthlyInfo return the initial year and month with collected data
func (*Client) GetIndexInformation ¶
func (c *Client) GetIndexInformation(name string, month, year int) (map[string][]models.IndexInformation, error)
Get index information by agency's ID or group (name)
func (*Client) GetLastDateWithMonthlyInfo ¶
GetLastDateWithMonthlyInfo return the latest year and month with collected data
func (*Client) GetNumberOfMonthsCollected ¶
GetNumberOfMonthsCollected Return the Agencies amount
func (*Client) GetOMA ¶
func (c *Client) GetOMA(month int, year int, agency string) (*models.AgencyMonthlyInfo, *models.Agency, error)
GetOMA Connect to db to collect data for a month including all employees
func (*Client) GetStateAgencies ¶
GetStateAgencies Connect to db to collect state agencies by UF
func (*Client) Store ¶
func (c *Client) Store(agmi models.AgencyMonthlyInfo) error
Store stores the Agency Monthly Info stats.
func (*Client) StorePaychecks ¶
func (*Client) StoreRemunerations ¶
func (c *Client) StoreRemunerations(remu models.Remunerations) error
Directories ¶
Path | Synopsis |
---|---|
About used pointers.
|
About used pointers. |
repo
|
|
database
Package mock_database is a generated GoMock package.
|
Package mock_database is a generated GoMock package. |
file_storage
Package mock_file_storage is a generated GoMock package.
|
Package mock_file_storage is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.