Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 354: Nodejs StreamManager #355

Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@ pravega-*.tgz
__pycache__/
book/book
html/
python_binding/.tox/
python_binding/.tox/

# These are temp files of Nodejs bindings
nodejs/target
nodejs/index.node
**/node_modules
**/.DS_Store
npm-debug.log*
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ members = [
"config",
"examples",
"macros",
"pravegactl"
"pravegactl",
"nodejs"
]

[dependencies]
Expand Down
8 changes: 8 additions & 0 deletions nodejs/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "avoid",
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 120,
"endOfLine": "auto"
}
thekingofcity marked this conversation as resolved.
Show resolved Hide resolved
33 changes: 33 additions & 0 deletions nodejs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
[package]
authors = ["Pravega Community"]
categories = ["network-programming"]
description = "Pravega client"
edition = "2018"
exclude = ["index.node"]
keywords = ["streaming", "client", "pravega"]
license = "Apache-2.0"
name = "pravega_client"
readme = "README.md"
repository = "https://github.com/pravega/pravega-client-rust"
version = "0.1.0"

tkaitchuck marked this conversation as resolved.
Show resolved Hide resolved
[lib]
crate-type = ["cdylib"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
futures = "0.3"
pravega-client = {path = "../", version = "0.3"}
pravega-client-config = {path = "../config", version = "0.3"}
pravega-client-retry = {path = "../retry", version = "0.3"}
pravega-client-shared = {path = "../shared", version = "0.3"}
pravega-controller-client = {path = "../controller-client", version = "0.3"}
tracing = "0.1.17"
tracing-futures = "0.2.4"
tracing-subscriber = "0.2.2"

[dependencies.neon]
default-features = false
features = ["napi-6", "promise-api", "channel-api"]
version = "0.10.0-alpha.3"
11 changes: 11 additions & 0 deletions nodejs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Pravega Nodejs client.

This project provides a way to interact with [Pravega](http://pravega.io) with a Nodejs client.

Pravega is an open source distributed storage service implementing Streams. It offers Stream as the main primitive for the foundation of reliable storage systems: a high-performance, durable, elastic, and unlimited append-only byte stream with strict ordering and consistency.

This project supports interaction with Pravega for Nodejs versions 16.

Only `StreamManager` is ready for use now. Example usage can be found in `./tests` and you may run it with `node --loader ts-node/esm tests/stream_manager.ts`.

Everything else is WORKING IN PROGRESS!
Loading