Commit Graph

48 Commits

Author SHA1 Message Date
Kevin Moore a6322db468
Regenerate protobuf types with new protobuf version (#658) 2023-08-16 05:33:31 -07:00
dependabot[bot] 9dadc31cba
Bump protobuf from 2.1.0 to 3.0.0 in /interop (#648)
Bumps [protobuf](https://github.com/google/protobuf.dart) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/google/protobuf.dart/releases)
- [Commits](https://github.com/google/protobuf.dart/compare/protobuf-v2.1.0...protobuf-v3.0.0)

---
updated-dependencies:
- dependency-name: protobuf
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-13 13:55:08 +02:00
Moritz 870ac192fa
Switch interop tests to Dart 3 (#644) 2023-06-20 16:09:38 -04:00
Ben Getsug 6c0829ed8b
Custom Error Handling for Server (#588)
Closes https://github.com/grpc/grpc-dart/issues/51
2022-12-01 11:29:57 +01:00
Kevin Moore dbf5421eb6
Cleanup: update to and use latest pkg:lints with associated fixes (#587)
Bump min Dart SDK for grpc to 2.17
Regenerate all code
Fix generate scripts
Add dependabot
2022-10-31 11:47:31 -07:00
Kevin Moore 151fa904b4
Remove unnecessary imports and superfluous type checks (#525) 2021-10-05 08:39:00 -07:00
Vyacheslav Egorov 4775078b8c
Fix interop tests (#513) 2021-08-10 11:15:39 +02:00
Vyacheslav Egorov e9ad5ab16b
Fix CI
* Reformat code with dev build of dartfmt

* Download envoy package manually
2021-08-10 11:04:11 +02:00
Alexander Bosak c982597fae
useTestCA argument checking fix (#495) 2021-07-01 14:06:25 +02:00
Alexander 6d9bb1057a
Fix interop/bin/server.dart after NNBD migration (#494) 2021-06-30 14:24:45 +02:00
Kevin Moore 9a4493f934
Update dependencies (#471) 2021-04-22 14:28:30 -07:00
Kevin Moore ee0e7ec351
Avoid completing multiplet times for one error (#454)
Also:
* updated SDK constraint to stable
* Use latest Dart action install
* Test on oldest supported SDK
2021-03-08 09:55:59 -08:00
Ivan Inozemtsev d7dc79971e
Update interop to null-safe grpc-dart (#448)
Also replace dependency_overrides with published versions
2021-02-01 15:38:31 +01:00
Kevin Moore b437d1089d
Update example pubspecs (#442)
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
2021-02-01 09:18:39 +01:00
Kevin Moore 1327ad7416
Spelling fixes (#443)
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
2021-02-01 09:16:10 +01:00
Kevin Moore 32fbc03c63
Enable and fix pedantic v1.9 lints (#445)
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
2021-02-01 09:12:26 +01:00
Kevin Moore b8adf24ec4
Regenerate proto code with latest generator (#444) 2021-02-01 09:03:11 +01:00
Ivan Inozemtsev 1e1831a187
Migrate grpc to null safety (#432) 2021-01-29 12:40:52 +01:00
Vyacheslav Egorov f1c475603f
Cleanups (#398)
* Regenerate protobuf files using newest protoc plugin
* Fix lints everywhere
* Remove visibleForTesting from profile.dart
2020-11-12 11:36:59 +01:00
Lei Liu 52bea07000
Add support for unix domain sockets (#327)
Fixes #299
2020-11-11 15:43:05 +01:00
Andrew Coutts b6e40c34e3
Add decoded grpc-status-details-bin details to GrpcError (#349)
Closes #209
2020-10-27 17:07:58 +01:00
Jiangtao Li 496c8b07d1
Update test credentials to use 2048-bit RSA (#285) 2020-03-23 14:20:21 +01:00
Sigurd Meldgaard 6d485375ba
Unimplement unimplementedMethod in interop (#208) 2019-06-27 15:36:43 +02:00
Brett Morgan 6c0f61aaf6 Updating for Protobuf 0.13 (#190) 2019-06-14 09:24:05 +02:00
Nic Hite c9c4e40088
Remove unnecessary 'new' and 'const' keywords. (#186) 2019-06-04 11:31:01 -07:00
Sigurd Meldgaard d7ae930e7f
Revert "Support grpc-web" (#159)
This reverts commit d58659507c.

Development of grpc-web will continue on the branch
https://github.com/grpc/grpc-dart/tree/grpc-web until it is ready.
2019-03-18 13:46:50 +01:00
Jeff Ward d58659507c Support grpc-web 2019-03-15 12:51:06 +01:00
Nic Hite eafca2ab28 Replace Future<Null> with Future<void>. (#146) 2019-01-03 08:13:25 +01:00
Alexandre Ardhuin 1051232d17 bump versions for dart 2 (#117) 2018-09-07 10:09:52 +02:00
Bob Nystrom 238fd7ec67 Finish migrating to the Dart 2 core library constants. (#101) 2018-07-19 15:16:58 +02:00
Jon Kirkman 7428ab3b51 removed version from example pubspecs (#90) 2018-07-04 08:35:56 +02:00
Jakob Andersen b8e5c5c2c5
Fix tests in Dart 2 mode. (#85)
Also updated generated code using latest protoc_plugin, for Dart 2 updates.

Fixes #84.
2018-05-02 12:39:58 +02:00
Jakob Andersen 88485bad11
Tweaks. (#82)
Using address: 'localhost' didn't work as expected in the Docker
environment, so reverting to old behavior.

Fixed a typo.
2018-04-06 11:35:11 +02:00
Jakob Andersen 686ecb3943
Dart 2 fixes (#77) 2018-04-05 09:43:42 +02:00
Jakob Andersen d9dea0e489
Move TLS credentials for server into a separate class. (#61)
Add address parameter for server, to control which address to listen to,
and the ability to use an ephemeral port.
2018-03-14 16:38:52 +01:00
Jakob Andersen 40ffab8da5
Split out TLS credentials to a separate class. (#60)
Add a 'bad certificate handler' to the new ChannelCredentials, which can
be used to override certificate validation (for example, to allow
auto-generated self-signed certificates during development).

Also fixed a bug in Server.shutdown().
2018-02-27 10:10:44 +01:00
Jakob Andersen 325eadec8c
Fix GCE auth interop test. (#57)
Hopefully.
2018-02-06 12:46:53 -08:00
Jakob Andersen 7621132097
Authenticated cloud-to-prod interop tests. (#55)
Added authentication provider classes, and wired up the auth interop
tests.

Refactored connection logic to throw initial connection errors early.

Fixes #53
2018-02-05 23:17:16 +01:00
Jakob Andersen eb5b80504d
Dart 2.0 fixes. (#48)
Updated generated code in examples using latest protoc compiler plugin.
Fixed uses-dynamic-as-bottom issues.
2018-01-12 15:20:03 +01:00
Michael Thomsen a01be59ab4 Change license to Apache to be consistent with other gRPC repos (#47) 2018-01-12 15:14:19 +01:00
Jakob Andersen b38b1cc7a2
Reorganize code for 0.2.0 release. (#41)
Split the large client/server.dart files into smaller pieces. This is in
preparation for splitting the HTTP/2 dependencies into a separate file
and make it easier to implement other transports.
2017-12-15 09:30:56 +01:00
Jakob Andersen 108181c2d2
Added support for metadata providers. (#39)
Provide a hook for metadata providers that need to generate their
metadata for each RPC. An example is authorization, where the provider
may need to refresh a token before it can provide the header.

Add stackdriver logging examplei to demonstrate calling a Google API.

Updated other examples to protobuf 0.6.0 (protoc plugin 0.7.8).

Updated SDK requirement to Dart 1.24.3, which adds support for creating a SecurityContext that trusts built-in roots, and support for ALPN on macOS.
2017-12-14 14:32:06 +01:00
Jakob Andersen a9b919a5e9 Added client-side interop tests. (#32) 2017-09-27 13:57:24 +02:00
Jakob Andersen 2f118ea043 Preparation for RPC multiplexing (#31)
First stage of separating Connection from Channel. A Channel manages
multiple Connections, and chooses which Connection to send an RPC on.

In this change, the Channel still creates a Connection for each RPC.
Managing the Connection life-cycle comes in a later change.
2017-09-25 13:51:40 +02:00
Jakob Andersen 05bb6a5d08 Update generated code using latest protoc_plugin. (#30)
Preparation for updating the call generation logic.
2017-08-23 12:47:48 +02:00
Jakob Andersen 83ee9c2edb Add TLS support. (#29)
Added ChannelOptions, which are used to specify options on a
ClientChannel. At the moment, only TLS options are supported.

Moved CallOptions from ClientChannel to a new Client stub base class.
Per-RPC call options are now specified on the stub instead of on the
channel, allowing several stubs with different options to share the same
channel.

Added support for TLS on the server side. TLS options are specified when
creating the Server.
2017-08-17 09:45:11 +02:00
Jakob Andersen 1d12c5b87d Add basic server tests. (#27) 2017-07-18 15:14:13 +02:00
Jakob Andersen 0a0a9ffc89 Basic server interoperability tests. (#25)
Implements the basic server interoperability tests for gRPC compliance.
Compressed tests, TLS, and authentication are not implemented yet, but
basic test cases pass against the C++ gRPC interoperability client.
2017-07-17 16:12:13 +02:00