Documentation
¶
Index ¶
- func EnrichSalesScopeFromRows(scope salesScope, rows [][]string, appleIdentifierIdx, skuIdx int) salesScope
- func InsightsCommand() *ffcli.Command
- func ParseSalesReportMetrics(reader io.Reader, scope salesScope) (salesWeekMetrics, error)
- func RowMatchesSalesScope(scope salesScope, appleIdentifier, parentIdentifier string) (isAppRow bool, isMonetizedRow bool, include bool)
- type SalesMetrics
- type SalesScope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrichSalesScopeFromRows ¶ added in v1.260325.0
func EnrichSalesScopeFromRows(scope salesScope, rows [][]string, appleIdentifierIdx, skuIdx int) salesScope
EnrichSalesScopeFromRows resolves the app SKU from report data when it is not already set on scope.
func InsightsCommand ¶
InsightsCommand returns the insights command group.
func ParseSalesReportMetrics ¶ added in v1.260325.0
ParseSalesReportMetrics reads a gzip-compressed sales TSV from reader and returns aggregated metrics scoped to the given app.
func RowMatchesSalesScope ¶ added in v1.260325.0
func RowMatchesSalesScope(scope salesScope, appleIdentifier, parentIdentifier string) (isAppRow bool, isMonetizedRow bool, include bool)
RowMatchesSalesScope determines whether a report row belongs to the app, represents a monetized product, or should be included in aggregation.
Types ¶
type SalesMetrics ¶ added in v1.260325.0
type SalesMetrics struct {
RowCount int
UnitsColumnPresent bool
DeveloperProceedsColumnPresent bool
CustomerPriceColumnPresent bool
SubscriptionColumnPresent bool
UnitsTotal float64
DownloadUnitsTotal float64
MonetizedUnitsTotal float64
DeveloperProceedsTotal float64
CustomerPriceTotal float64
SubscriptionRows int
SubscriptionUnitsTotal float64
SubscriptionDeveloperProceeds float64
SubscriptionCustomerPrice float64
RenewalRows int
RenewalUnitsTotal float64
RenewalDeveloperProceeds float64
RenewalCustomerPrice float64
}
SalesMetrics holds aggregated metrics from a parsed sales report.
type SalesScope ¶ added in v1.260325.0
SalesScope identifies an app for scoping sales report row filtering.
Click to show internal directories.
Click to hide internal directories.