datahose

package module
v0.0.0-...-73eae60 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 8 Imported by: 0

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 represents a datahose client.

func NewClient

func NewClient() (*Client, error)

NewClient returns a datahose client

func (*Client) Push

func (c *Client) Push(payload Payload) error

Push pushes an event to the datahose.

type Payload

type Payload struct {
	Key  string                 `json:"key"`
	Body map[string]interface{} `json:"body"`
}

Payload represents a datahose payload.

Jump to

Keyboard shortcuts

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