PSSubscription

gcp4zio.pubsub.subscription.PSSubscription
See thePSSubscription companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def createBQSubscription(project: String, subscription: String, topic: String, bqTableId: String): ZIO[PSSubscription, Throwable, Subscription]

Value parameters

bqTableId

The name of the table to which to write data, of the form {projectId}:{datasetId}.{tableId}

project

GCP Project ID

subscription

The name of the subscription

topic

The name of the topic from which this subscription is receiving messages

Attributes

Returns

Subscription

def createPullSubscription(project: String, subscription: String, topic: String, ackDeadlineSeconds: Int): ZIO[PSSubscription, Throwable, Subscription]

Value parameters

ackDeadlineSeconds

Messages not successfully acknowledged within seconds defined by this param will get resent by the server.

project

GCP Project ID

subscription

The name of the subscription

topic

The name of the topic from which this subscription is receiving messages

Attributes

Returns

Subscription

def createPushSubscription(project: String, subscription: String, topic: String, ackDeadlineSeconds: Int, pushEndpoint: String): ZIO[PSSubscription, Throwable, Subscription]

Value parameters

ackDeadlineSeconds

Messages not successfully acknowledged within seconds defined by this param will get resent by the server.

project

GCP Project ID

pushEndpoint

A URL locating the endpoint to which messages should be pushed.

subscription

The name of the subscription

topic

The name of the topic from which this subscription is receiving messages

Attributes

Returns

Subscription

def deleteSubscription(project: String, subscription: String): ZIO[PSSubscription, Throwable, Unit]

Value parameters

project

GCP Project ID

subscription

The name of the subscription to be deleted

Attributes

Returns

Unit

def live(path: Option[String]): TaskLayer[PSSubscription]

Actual live layer

Actual live layer

Value parameters

path

Optional path to google service account credential file

Attributes

Returns

PSSubscription

Concrete fields

val test: TaskLayer[PSSubscription]

Test layer

Test layer

Attributes

Returns

PSSubscription