-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the stub for readign from GCS and writing to pub/sub
- Loading branch information
1 parent
922ca9a
commit 8c16d84
Showing
6 changed files
with
98 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ter/src/main/scala/com.snowplowanalytics.snowplow.storage.bigquery.repeater/Recover.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.snowplowanalytics.snowplow.storage.bigquery.repeater | ||
|
||
import fs2.Stream | ||
import cats.effect.Concurrent | ||
import cats.effect.Timer | ||
import blobstore.Path | ||
|
||
object Recover { | ||
|
||
def recoverFailedInserts[F[_]: Timer: Concurrent](resources: Resources[F]): Stream[F, Unit] = | ||
for { | ||
readFromGcs <- resources.store.get(Path("gs://foo/bar"), 1024) | ||
_ <- Stream.eval(resources.pubSubProducer.produce(recover(readFromGcs))) | ||
} yield () | ||
|
||
private def recover: Byte => EventContainer = ??? | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters