reports

package
v0.0.0-...-1a29aff Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TicketTotals

func TicketTotals(c client.ReportClient, u ui.Interactor, tIDs []int64, start time.Time, end time.Time, reportType string) error

TicketTotals retrieves and displays the report information

Types

type TicketReport

type TicketReport struct {
	TicketID    int64   `json:"id"`
	Description string  `json:"description"`
	Total       float64 `json:"total"`
	Totals      []Total `json:"totals"`
}

TicketReport represents represents ticket data given some parameters

type Total

type Total struct {
	StartTime time.Time `json:"start_time"`
	EndTime   time.Time `json:"end_time"`
	Total     float64   `json:"total"`
}

Total is the total time/amount between two times

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳