dropsonde_unmarshaller

package
v0.0.0-...-b7aefed Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2014 License: Apache-2.0, Apache-2.0, BSD-2-Clause-Views, + 2 more Imports: 7 Imported by: 0

Documentation

Overview

Package dropsonde_unmarshaller provides a tool for unmarshalling Envelopes from Protocol Buffer messages.

Use

Instantiate a Marshaller and run it:

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DropsondeUnmarshaller

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

A DropsondeUnmarshaller is an self-instrumenting tool for converting Protocol Buffer-encoded dropsonde messages to Envelope instances.

func NewDropsondeUnmarshaller

func NewDropsondeUnmarshaller(logger *gosteno.Logger) DropsondeUnmarshaller

NewDropsondeUnmarshaller instantiates a DropsondeUnmarshaller and logs to the provided logger.

Jump to

Keyboard shortcuts

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