protobuf

module
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2018 License: MIT

README

GopherJS Bindings for ProtobufJS and gRPC-Web

Circle CI Go Report Card GoDoc Gitter chat

gRPC-Web radio operator Gopher by Egon Elbre (@egonelbre)

Users

A list of some of the users of the library. Send me a message on @jbrandhorst on Gophers Slack if you wish to be added to this list

Getting started

The easiest way to get started with gRPC-Web for Go is to clone the boilerplate repo and start playing around with it.

Components

GopherJS Protobuf Generator

This is a GopherJS client code generator for the Google Protobuf format. It generates code for interfacing with any gRPC services exposing a gRPC-Web spec compatible interface. It uses jspb and grpcweb. It is the main entrypoint for using the protobuf/gRPC GopherJS bindings.

GopherJS ProtobufJS Bindings

This is a simple GopherJS binding around the npm google-protobuf package. Importing it into any GopherJS source allows usage of ProtobufJS functionality.

GopherJS gRPC-Web Client Bindings

This is a GopherJS binding around the Improbable gRPC-Web client. It is not intended for public use.

Contributions

Contributions are very welcome, please submit issues or PRs for review.

Demo

See the example repo and the demo website for an example use of the Protobuf and gRPC-Web bindings.

Directories

Path Synopsis
Package grpcweb defines a couple of convenience wrappers around the Improbable TS gRPC-web implementation.
Package grpcweb defines a couple of convenience wrappers around the Improbable TS gRPC-web implementation.
status
Package status provides a gRPC Status struct compatible with the Improbable gRPC-web trailers and errors.
Package status provides a gRPC Status struct compatible with the Improbable gRPC-web trailers and errors.
protoc-gen-gopherjs is a plugin for the Google protocol buffer compiler to generate GopherJS code.
protoc-gen-gopherjs is a plugin for the Google protocol buffer compiler to generate GopherJS code.
generator
The code generator for the plugin for the Google protocol buffer compiler.
The code generator for the plugin for the Google protocol buffer compiler.
grpc
Package grpc outputs gRPC service descriptions in Go code.
Package grpc outputs gRPC service descriptions in Go code.
test/grpc_test
Package grpc_test is a generated protocol buffer package.
Package grpc_test is a generated protocol buffer package.
test/multi
Package multi is a generated protocol buffer package.
Package multi is a generated protocol buffer package.
test/types
Package types is a generated protocol buffer package.
Package types is a generated protocol buffer package.
ptypes
any
Package any is a generated protocol buffer package.
Package any is a generated protocol buffer package.
duration
Package duration is a generated protocol buffer package.
Package duration is a generated protocol buffer package.
empty
Package empty is a generated protocol buffer package.
Package empty is a generated protocol buffer package.
struct
Package structpb is a generated protocol buffer package.
Package structpb is a generated protocol buffer package.
timestamp
Package timestamp is a generated protocol buffer package.
Package timestamp is a generated protocol buffer package.
wrappers
Package wrappers is a generated protocol buffer package.
Package wrappers is a generated protocol buffer package.
test
client/proto/test
Package test is a generated protocol buffer package.
Package test is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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