responses

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

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 1 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Responses

Each response is specified as a struct.

Example

` package responses

type ProductSumResponse struct {
    Step string
    Sum  int
}

`

This gets converted automatically into JSON that looks like this

{ "step": "blah blah", "sum" : 100 }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSum

func GetSum(step string, pf HenhouseResponse) int

Types

type AverageProductStatsResponse

type AverageProductStatsResponse struct {
	TotalRevenue          float64
	TotalOrders           float64
	TotalPdPViews         float64
	TotalInCarts          float64
	ProductConversionRate float64
}

type HenhouseResponse

type HenhouseResponse []struct {
	Key   string        `json:"key"`
	Stats HenhouseStats `json:"stats"`
}

type HenhouseStats

type HenhouseStats struct {
	Variance   float64 `json:"variance"`
	Mean       float64 `json:"mean"`
	From       int     `json:"from"`
	To         int     `json:"to"`
	Resolution int     `json:"resolution"`
	Points     int     `json:"points"`
	Sum        int     `json:"sum"`
}

type ProductFunnelResponse

type ProductFunnelResponse struct {
	SearchViews       int
	PdpViews          int
	CartClicks        int
	CheckoutClicks    int
	Purchases         int
	SearchToPdp       float64
	PdpToCart         float64
	CartToCheckout    float64
	CheckoutPurchased float64
}

type ProductStatsResponse

type ProductStatsResponse struct {
	TotalRevenue          int
	TotalOrders           int
	TotalPdPViews         int
	TotalInCarts          int
	ProductConversionRate float64
	Average               *AverageProductStatsResponse
	ActiveProducts        int
}

type ProductStatsResponseWithTime

type ProductStatsResponseWithTime struct {
	Time  int64
	Stats ProductStatsResponse
}

type ProductSumResponse

type ProductSumResponse struct {
	Step string
	Sum  int
}

type ValuePairs

type ValuePairs []struct {
	X int64 `json:"x"`
	Y int   `json:"y"`
}

Jump to

Keyboard shortcuts

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