Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PixelGifBytes ¶
func PixelGifBytes() []byte
PixelGifBytes returns the content of the pixel gif in https://github.com/documentcloud/pixel-ping
Types ¶
type HitServer ¶
type HitServer struct {
// contains filtered or unexported fields
}
HitServer is the main struct for managing hitpoints
func (*HitServer) HandleJS ¶ added in v0.3.0
HandleJS creates a handler function for the JS file used to count hits
func (*HitServer) HandlePixelRequest ¶
func (s *HitServer) HandlePixelRequest(w http.ResponseWriter, r *http.Request)
HandlePixelRequest sends a message to the hits worker and returns the pixel GIF
func (*HitServer) StartWorker ¶ added in v0.2.0
StartWorker begins accepting hits on the hits channel and caching them
Click to show internal directories.
Click to hide internal directories.