Documentation ¶
Overview ¶
statshub is a repository for incrementally calculated statistics stored using a dimensional model.
To run a local server for testing:
REDIS_ADDR=<host:port> REDIS_PASS=<password> PORT=9000 go run statshub.go
Example stats updates using curl against the local server:
curl --data-binary \ '{"dims": { "country": "es", "user": "bob" }, "counters": { "counterA": 50 }, "increments": { "counterB": 500 }, "gauges": { "gaugeA": 5000 }, "members": { "gaugeB": "item1" } }' \ "http://localhost:9000/stats/myid1"
Example stats get (for the country dimension):
curl -i "http://localhost:9000/stats/country"
Example stats get (for all dimensions):
curl -i "http://localhost:9000/stats/"
See the README at https://github.com/getlantern/statshub for more information.
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/code.google.com/p/go.net/websocket
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455.
|
Package websocket implements a client and server for the WebSocket protocol as specified in RFC 6455. |
_workspace/src/code.google.com/p/goauth2/oauth
The oauth package provides support for making OAuth2-authenticated HTTP requests.
|
The oauth package provides support for making OAuth2-authenticated HTTP requests. |
_workspace/src/code.google.com/p/goauth2/oauth/example
This program makes a call to the specified API, authenticated with OAuth2.
|
This program makes a call to the specified API, authenticated with OAuth2. |
_workspace/src/code.google.com/p/goauth2/oauth/jwt
The jwt package provides support for creating credentials for OAuth2 service account requests.
|
The jwt package provides support for creating credentials for OAuth2 service account requests. |
_workspace/src/code.google.com/p/goauth2/oauth/jwt/example
This program makes a read only call to the Google Cloud Storage API, authenticated with OAuth2.
|
This program makes a read only call to the Google Cloud Storage API, authenticated with OAuth2. |
_workspace/src/code.google.com/p/ox-google-api-go-client/bigquery/v2
Package bigquery provides access to the BigQuery API.
|
Package bigquery provides access to the BigQuery API. |
_workspace/src/code.google.com/p/ox-google-api-go-client/googleapi
Package googleapi contains the common code shared by all Google API libraries.
|
Package googleapi contains the common code shared by all Google API libraries. |
_workspace/src/code.google.com/p/ox-google-api-go-client/googleapi/transport
Package transport contains HTTP transports used to make authenticated API requests.
|
Package transport contains HTTP transports used to make authenticated API requests. |
_workspace/src/github.com/garyburd/redigo/redis
Package redis is a client for the Redis database.
|
Package redis is a client for the Redis database. |
_workspace/src/github.com/oxtoacart/go-ringbuffer/ringbuff
Package ringbuff provides a minimalist ring buffer.
|
Package ringbuff provides a minimalist ring buffer. |
_workspace/src/github.com/oxtoacart/oauther/oauth
package oauther provides the ability to obtain OAuth tokens and to use these inside a Go application.
|
package oauther provides the ability to obtain OAuth tokens and to use these inside a Go application. |
_workspace/src/github.com/oxtoacart/webbrowser
Package webbrowser provides a simple API for opening web pages on your default browser.
|
Package webbrowser provides a simple API for opening web pages on your default browser. |
Click to show internal directories.
Click to hide internal directories.