From 03ecb840641f1f9cf99f63b1dae042dd40f1b209 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Thu, 16 Apr 2020 16:34:59 +0800 Subject: [PATCH] Export more symbols in grpc_connection_interface.dart (#292) To create an alternate implementation of ClientChannel, we currently need to import symbols from lib/src which are "private" to the package. This change exports them as part of the public API. --- lib/grpc_connection_interface.dart | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lib/grpc_connection_interface.dart diff --git a/lib/grpc_connection_interface.dart b/lib/grpc_connection_interface.dart new file mode 100644 index 0000000..6a7ea16 --- /dev/null +++ b/lib/grpc_connection_interface.dart @@ -0,0 +1,30 @@ +// Copyright (c) 2020, the gRPC project authors. Please see the AUTHORS file +// for details. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/// Exports an interface suitable for defining an alternate implementation of +/// [ClientChannel]. + +export 'src/client/call.dart' show CallOptions, ClientCall; +export 'src/client/channel.dart' show ClientChannelBase; +export 'src/client/connection.dart' show ClientConnection; +export 'src/client/http2_channel.dart' show ClientChannel; +export 'src/client/options.dart' show ChannelOptions; +export 'src/client/transport/transport.dart' + show GrpcTransportStream, ErrorHandler; + +export 'src/shared/message.dart' show frame, GrpcMessage, grpcDecompressor; +export 'src/shared/status.dart' show GrpcError; +export 'src/shared/streams.dart' show GrpcHttpDecoder; +export 'src/shared/timeout.dart' show toTimeoutString;