honeycomb

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = config{
	Dataset:  "fake",
	WriteKey: "fakekey",
	APIHost:  "fakehost",
}

Functions

func BuildConfig

func BuildConfig(uri *url.URL) (*config, error)

Types

type Batch

type Batch []*BatchPoint

type BatchPoint

type BatchPoint struct {
	Data      interface{}
	Timestamp time.Time
}

type BatchPointsSavedToHoneycomb

type BatchPointsSavedToHoneycomb struct {
	BatchPoint *BatchPoint
}

type Client

type Client interface {
	SendBatch(batch Batch) error
}

type FakeHoneycombClient

type FakeHoneycombClient struct {
	BatchPoints []*BatchPoint
}

func NewFakeHoneycombClient

func NewFakeHoneycombClient() *FakeHoneycombClient

func (*FakeHoneycombClient) SendBatch

func (client *FakeHoneycombClient) SendBatch(batch Batch) error

type HoneycombClient

type HoneycombClient struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(uri *url.URL) (*HoneycombClient, error)

func (*HoneycombClient) SendBatch

func (c *HoneycombClient) SendBatch(batch Batch) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL