conversion

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

This entire package is a short-term fix for a bigger problem of sharing conversion logic between Loggregator and its client.

*DO NOT* make changes to this code here.

For the time being, this code is a duplicate of Loggregator's conversion package and it should be updated regularly until we resolve:

https://github.com/cloudfoundry-incubator/go-loggregator/issues/19

Current copy of this package is from Loggregator Git SHA: 737384a568fa12cf9115e48afc75d191fdcc70bb

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToV1

func ToV1(e *v2.Envelope) []*events.Envelope

ToV1 converts v2 envelopes down to v1 envelopes. e may be mutated during the conversion and share pointers with the new v1 envelope for efficiency in creating the v1 envelope. As a result the envelope you pass in should no longer be used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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