PublisherClient returns a *raw.PublisherClient that can be used in OpenTopic.
(ctx context.Context, conn *grpc.ClientConn)
| 319 | |
| 320 | // PublisherClient returns a *raw.PublisherClient that can be used in OpenTopic. |
| 321 | func PublisherClient(ctx context.Context, conn *grpc.ClientConn) (*raw.PublisherClient, error) { |
| 322 | return raw.NewPublisherClient(ctx, option.WithGRPCConn(conn)) |
| 323 | } |
| 324 | |
| 325 | // SubscriberClient returns a *raw.SubscriberClient that can be used in OpenSubscription. |
| 326 | func SubscriberClient(ctx context.Context, conn *grpc.ClientConn) (*raw.SubscriberClient, error) { |
no outgoing calls