grpc 0.6.8+1

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 90

The Dart implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

Build Status pub package

Usage

See the Dart gRPC Quickstart.

Status

This package is currently in beta: It is available for general usage, and is considered feature complete.

If you experience issues, or if you have feature requests, please open an issue.

Notes

This library requires Dart SDK version 2.0 or later.

It currently supports the the Flutter and VM/Server platforms. The potential addition of gRPC-Web is tracked in issue 43.

0.6.8+1

  • Removes stray files that where published by accident in version 0.6.8.

0.6.8

  • Calling terminate() or shutdown() on a channel doesn't throw error if the channel is not yet open.

0.6.7

  • Support package:test 1.5.

0.6.6

  • Support package:http >=0.11.3+17 <0.13.0.
  • Update package:googleapis_auth to ^0.2.5+3.

0.6.5

  • Interceptors are now async.

0.6.4

  • Update dependencies to be compatible with Dart 2.

0.6.3

  • Make fields of StatusCode const rather than final.

0.6.2

  • Allow for non-ascii header values.

0.6.1

  • More fixes to update to Dart 2 core library APIs.

0.6.0+1

  • Updated implementation to use new Dart 2 APIs using dart2_fix.

0.6.0

  • Dart SDK upper constraint raised to declare compatability with Dart 2.0 stable.

0.5.0

  • Breaking change: The package now exclusively supports Dart 2.
  • Fixed tests to pass in Dart 2.
  • Added support for Interceptors (issue #79); thanks to @mogol for contributing!

0.4.1

  • Fixes for supporting Dart 2.

0.4.0

  • Moved TLS credentials for server into a separate class.
  • Added support for specifying the address for the server, and support for serving on an ephemeral port.

0.3.1

  • Split out TLS credentials to a separate class.

0.3.0

  • Added authentication metadata providers, optimized for use with Google Cloud.
  • Added service URI to metadata provider API, needed for Json Web Token generation.
  • Added authenticated cloud-to-prod interoperability tests.
  • Refactored connection logic to throw initial connection errors early.

0.2.1

  • Updated generated code in examples using latest protoc compiler plugin.
  • Dart 2.0 fixes.
  • Changed license to Apache 2.0.

0.2.0

  • Implemented support for per-RPC metadata providers. This can be used for authentication providers which may need to obtain or refresh a token before the RPC is sent.

0.1.0

The API is shaping up, but may still change as more advanced features are implemented.

0.0.1

  • Initial version.

This package is in a very early and experimental state. We do not recommend using it for anything but experiments.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  grpc: ^0.6.8+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:grpc/grpc.dart';
  
Version Uploaded Documentation Archive
0.6.8+1 Dec 13, 2018 Go to the documentation of grpc 0.6.8+1 Download grpc 0.6.8+1 archive
0.6.8 Nov 12, 2018 Go to the documentation of grpc 0.6.8 Download grpc 0.6.8 archive
0.6.6 Oct 24, 2018 Go to the documentation of grpc 0.6.6 Download grpc 0.6.6 archive
0.6.5 Sep 18, 2018 Go to the documentation of grpc 0.6.5 Download grpc 0.6.5 archive
0.6.4 Sep 7, 2018 Go to the documentation of grpc 0.6.4 Download grpc 0.6.4 archive
0.6.1 Jul 19, 2018 Go to the documentation of grpc 0.6.1 Download grpc 0.6.1 archive
0.6.0+1 Jul 13, 2018 Go to the documentation of grpc 0.6.0+1 Download grpc 0.6.0+1 archive
0.6.0 Jul 12, 2018 Go to the documentation of grpc 0.6.0 Download grpc 0.6.0 archive
0.5.0 Jul 10, 2018 Go to the documentation of grpc 0.5.0 Download grpc 0.5.0 archive
0.4.1 Apr 5, 2018 Go to the documentation of grpc 0.4.1 Download grpc 0.4.1 archive

All 17 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
89
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80
Overall:
Weighted score of the above. [more]
90
Learn more about scoring.

We analyzed this package on Dec 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms: Flutter, other

Primary library: package:grpc/grpc.dart with components: io.

Health suggestions

Fix lib/src/client/options.dart. (-1 points)

Analysis of lib/src/client/options.dart reported 2 hints:

line 28 col 7: The top level variable '_minConnectTimeout' isn't used.

line 85 col 25: 'alpnSupported' is deprecated and shouldn't be used.

Fix lib/src/shared/security.dart. (-0.50 points)

Analysis of lib/src/shared/security.dart reported 1 hint:

line 23 col 21: 'alpnSupported' is deprecated and shouldn't be used.

Maintenance suggestions

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example.

None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use grpc.dart. Packages with multiple examples should use example/readme.md.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
async >=1.13.3 <3.0.0 2.0.8
googleapis_auth ^0.2.5+3 0.2.6
http >=0.11.3+17 <0.13.0 0.12.0
http2 ^0.1.7 0.1.9
meta ^1.0.5 1.1.6
Transitive dependencies
charcode 1.1.2
collection 1.14.11
convert 2.0.2
crypto 2.0.6
http_parser 3.1.3
path 1.6.2
source_span 1.4.1
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
mockito ^3.0.0
test ^1.5.0