Documentation ¶
Overview ¶
Package gcpdriver contains Google Cloud Pub/Sub driver for unifrost.StreamHandler
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client handles the subscriptions to the GCP PubSub broker topics
func NewClient ¶
func NewClient(ctx context.Context, conn *grpc.ClientConn, projectID gcp.ProjectID, opts ...Option) (*Client, error)
NewClient returns *gcpdriver.Client, also creates a GCP pub-sub broker client.
conn is the client connection returned by gcppubsub.Dial for connecting to GCP pub-sub broker, projectID is the project ID for your GCP project. Additional configuration options can be added with gcppubsub.Option functions.
Click to show internal directories.
Click to hide internal directories.