proto-contrib

module
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT

README

proto-contrib

Packages and tools on top of https://github.com/emicklei/proto

usage of protofmt command
> protofmt -help
	Usage of protofmt [flags] [path ...]
	-w	write result to (source) files instead of stdout

See folder cmd/protofmt/README.md for more details.

usage of proto2xsd command
> proto2xsd -help
	Usage of proto2xsd [flags] [path ...]
	-ns string
		namespace of the target types (default "http://your.company.com/domain/version")

See folder cmd/proto2xsd/README.md for more details.

usage of proto2gql command
> proto2gql -help
    Usage of proto2gql [flags] [path ...]

    -filter string
        Regexp to filter out matched types
    -filterN string
        Regexp to filter out not matched types
    -go_out string
        Writes transformed files to .go file
    -js_out string
        Writes transformed files to .js file
    -no_prefix
        Disables package prefix for type names
    -package_alias value
        Renames packages using given aliases
    -resolve_import value
        Resolves given external packages
    -std_out
        Writes transformed files to stdout
    -txt_out string
        Writes transformed files to .graphql file

See folder cmd/proto2gql/README.md for more details.

usage of protodep command
> protodep v1/myservice.proto

v1/myservice.proto
v1/shared.proto
google/api/annotations.proto
google/api/http.proto
google/protobuf/descriptor.proto
google/protobuf/timestamp.proto

See README.md

usage of proto2avro command
proto2avro [filename].proto [message]
usage of protocompose command

See README.md

usage of proto2openapi command
WORK in progress

Jump to

Keyboard shortcuts

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