xtoproto

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0

README

xtoproto (csvtoproto, xmltoproto, etc.)

xtoproto is a library for automatically (1) inferring a protocol buffer definition (a .proto file) from XML and CSV files, and (2) generating runtime code from translating XML and CSV files to proto using the mappings from (1).

Not yet operable

This repository was created on June 29, 2020. We are incrementally migrating the code onto Github, and the project will not be functional until that migration is finished. This README will be updated with instructions about how to use the project once the migration is complete. In the mean time, feel free to browse the code.

Building

The project is buildable with Bazel. We also plan to make it buildable using go build after the initial migration effort.

bazel build //...

Disclaimer

This is not an official Google product.

Directories

Path Synopsis
Package csvinfer guesses the types of CSV columns and uses these to generate a CSVProtoMapping object that in turn may be used to generate a .proto definition and CSV-to-proto parser.
Package csvinfer guesses the types of CSV columns and uses these to generate a CSVProtoMapping object that in turn may be used to generate a .proto definition and CSV-to-proto parser.
Package csvtoproto generates a .proto file and a .go file from a go/csv-to-proto mapping file.
Package csvtoproto generates a .proto file and a .go file from a go/csv-to-proto mapping file.
Package csvtoprotoparse contains runtime functionality needed by code generated by the go/csv-to-proto tool.
Package csvtoprotoparse contains runtime functionality needed by code generated by the go/csv-to-proto tool.
Package protocp transforms one record-oriented format into another record-oriented format where the records are protocol buffers.
Package protocp transforms one record-oriented format into another record-oriented format where the records are protocol buffers.
Package recordinfer guesses the types of record columns and uses these to generate a RecordProtoMapping object that in turn may be used to generate a .proto definition and record-to-proto parser.
Package recordinfer guesses the types of record columns and uses these to generate a RecordProtoMapping object that in turn may be used to generate a .proto definition and record-to-proto parser.
Package service implements the XToProtoService gRPC service.
Package service implements the XToProtoService gRPC service.

Jump to

Keyboard shortcuts

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