Skip to content

[feat] RR Create API 2: Add storage and spanner accessor #12

Open
Deep1998 wants to merge 25 commits into
acc1from
acc2
Open

[feat] RR Create API 2: Add storage and spanner accessor #12
Deep1998 wants to merge 25 commits into
acc1from
acc2

Conversation

@Deep1998
Copy link
Copy Markdown
Owner

@Deep1998 Deep1998 commented Jan 9, 2024

Add accessors similar to dataflow for spanner and storage. All calls to the client should go via the accessor.

We still have util files that contain methods that do not call the client. In this PR, this is the storage_client.go

Comment thread accessors/spanner/spanner_accessor.go
Comment thread accessors/spanner/spanner_accessor.go
Comment thread accessors/spanner/spanner_accessor.go Outdated
Comment thread accessors/spanner/spanner_accessor.go Outdated
Comment thread accessors/storage/storage_accessor.go
Comment thread accessors/storage/storage_accessor.go
Comment thread webv2/session/session_service.go
Comment thread webv2/web.go
* Add dataflow accessor

* Add enable streaming engine struct tag
Mofe Unmarshall Method to acc2 due ot storage dependency

* Moved dataflow utils to accessor and creates types.go

* Create dataflowutils package

* Renamed testing package for dataflow util

* Added unit tests

* Added empty test files for clients

* Move test to same package

* Add tests for dataflow client

* Update fake for client test

* Make dataflow accessor interface and struct to make it testable

* Remove interface from accessor package

* Add dataflow accessor interface

* Add comments to dataflow client and comments on unit tests

* Move all dataflow dependencies to accessors and remove dataflow utils

* Create dataflow client interface for accessor method to make it unit testable
Add log statements to storage accessor functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants