Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 866 Bytes

readme.md

File metadata and controls

38 lines (24 loc) · 866 Bytes

#keengo

Send events to Keen.io asynchronously in batches.

See https://github.com/philpearl/keengo_goji for Goji middleware that sends HTTP request/response info to keen.io.

See the documentation at https://godoc.org/github.com/philpearl/keengo

Build Status

Example

package main

import (
        "fmt"
        "net/http"

        "github.com/philpearl/keengo"
)


func main() {
    // You just need one sender object - feed it your keen project ID and write key
    sender := keengo.NewSender(projectId, writeKey)

    // The data you send can be anything JSON serialisable
    info := map[string]interface{}{
        "data": "hello world",
    }

    // Call Queue to send your event
    sender.Queue("my first collection", info)
}