agent

package
v0.0.0-...-05a8a7e Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2013 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(data []byte, connection *amqp.Connection) error

Accepts an input source and attempts to marshall it into a protocol buffer, then pushes the message to an AMQP Exchange.

Currently accepts a JSON input but this should change.

Types

type Header struct {
	Creator    string
	Receiver   string
	Created_At int64
	MessageID  string
}

type Item

type Item struct {
	Header  Header
	Payload Payload
}

type Payload

type Payload struct {
	Body string
}

Jump to

Keyboard shortcuts

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