dropsonde_marshaller

package
v0.0.0-...-a51aa93 Latest Latest
Warning

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

Go to latest
Published: May 21, 2015 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package dropsonde_marshaller provides a tool for marshalling Envelopes to Protocol Buffer messages.

Use

Instantiate a Marshaller and run it:

marshaller := dropsonde_marshaller.NewDropsondeMarshaller(logger)
inputChan := make(chan *events.Envelope) // or use a channel provided by some other source
outputChan := make(chan []byte)
go marshaller.Run(inputChan, outputChan)

The marshaller self-instruments, counting the number of messages processed and the number of errors. These can be accessed through the Emit function on the marshaller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropsondeMarshaller

type DropsondeMarshaller interface {
	instrumentation.Instrumentable
	Run(inputChan <-chan *events.Envelope, outputChan chan<- []byte)
}

A DropsondeMarshaller is an self-instrumenting tool for converting dropsonde Envelopes to binary (Protocol Buffer) messages.

func NewDropsondeMarshaller

func NewDropsondeMarshaller(logger *gosteno.Logger) DropsondeMarshaller

NewDropsondeMarshaller instantiates a DropsondeMarshaller and logs to the provided logger.

Jump to

Keyboard shortcuts

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