Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client to interact with the realtime API
func NewClient ¶
func NewClient(opts ...ClientOption) *Client
NewClient creates a client for the realtime API.
func (*Client) GetRealTime ¶
GetRealTime returns the realtime analytics api. https://developers.google.com/apis-explorer/#p/analytics/v3/analytics.data.realtime.get
type ClientOption ¶
type ClientOption func(*Client)
ClientOption modifies the default behavior of a realtime client.
func WithHTTPClient ¶
func WithHTTPClient(client *http.Client) ClientOption
WithHTTPClient makes the realtime client use the given HTTP client.
type Response ¶
type Response struct {
TotalsForAllResults *ResponseTotals `json:"totalsForAllResults,omitempty"`
}
Response stores the google analytics response.
type ResponseTotals ¶
type ResponseTotals struct {
RtActiveUsers *string `json:"rt:activeUsers,omitempty"`
}
ResponseTotals stores the total active users response.
Click to show internal directories.
Click to hide internal directories.