Versions in this module Expand all Collapse all v1 v1.0.0 Aug 23, 2019 Changes in this version + const AppsPath + const AttributesPath + const QueryPath + const RootURL + var ErrRateLimitExeceed = errors.New("localytics: rate limit has been exceeded") + func Auth(key string, secret string) func(o *Opts) + type App struct + AppID string + CreatedAt string + CustomDimensions CustomDimensions + IconURL string + Name string + Stats Stats + type Attributes struct + Events []*Event + type Client struct + func New(httpClient *http.Client, opts ...Opt) *Client + func (c *Client) App(appID string) (*App, error) + func (c *Client) Apps() ([]*App, error) + func (c *Client) Attributes(appID string) (*Attributes, error) + func (c *Client) Query(q *Query) (*Report, error) + type CustomDimensions map[string]string + type Event struct + Attributes []string + EventName string + HighCardinalityAttributes []string + type LocalyticsError struct + DocURL string + Message string + func (l LocalyticsError) Error() string + type Opt func(*Opts) + type Opts struct + ApiKey string + ApiSecret string + type Query struct + AppIDs []string + Comment string + Conditions map[string][]string + Days int + Dimensions []string + Limit int + Metrics []string + Order []string + ProfileDBID []int + SamplingRatio float64 + Translate map[string]string + type Report struct + AppIDs []string + Comment string + CreatedAt string + ExpiresAt string + Query *Query + Results []map[string]interface{} + Truncated bool + type Stats struct + BeginDate string + ClientLibraries []string + Closes int + DataPoints int + EndDate string + Events int + Platforms []string + Sessions int + Users int