convert

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package convert contains code to convert from the Legacy JSON API to the new Proto API, and vice-versa.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobListToProto

func JobListToProto(jsonSrc io.Reader) ([]*proto.Job, error)

JobListToProto converts a stream of JSON representing the Legacy jobs list response into a list of proto Jobs. Partial results may be returned along with an error representing failure to parse some jobs.

func JobToProto

func JobToProto(jsonSrc io.Reader) (*proto.Job, error)

JobToProto converts a stream of JSON representing a Legacy Job into the new proto Job format.

func JobToValues

func JobToValues(job *proto.JobSpec, userEmail string) (url.Values, error)

JobToValues turns a proto.JobSpec into a url.Values which can then be HTTP form-encoded for the legacy Pinpoint API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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