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

RPC #66

Open
fundon opened this issue Jan 11, 2023 · 7 comments
Open

RPC #66

fundon opened this issue Jan 11, 2023 · 7 comments

Comments

@fundon
Copy link
Member

fundon commented Jan 11, 2023

No description provided.

@mymtw
Copy link

mymtw commented May 29, 2024

is it possible to make interface like here?
https://github.com/kardeiz/jsonrpc-v2
also need support of middlewares for rpc
what do you think about it?

@fundon
Copy link
Member Author

fundon commented May 30, 2024

Should integrate well with jsonrpc-v2.
But needs to be adapted to hyper v1.

@mymtw
Copy link

mymtw commented May 30, 2024

this lib https://github.com/kardeiz/jsonrpc-v2
not allowing to add and use middlewares e.g. for jwt auth.

@fundon
Copy link
Member Author

fundon commented May 30, 2024

jsonrpc supports to convert it into hyper service.
So it is possible to use middleware from other frameworks.

https://github.com/kardeiz/jsonrpc-v2/blob/16ec062ec3e9f83f95458bbb5e5bc6a599adbf75/examples/hyper.rs#L38

@mymtw
Copy link

mymtw commented May 30, 2024

sorry for such questions but i really dont know how to use them
when we asked creator of lib to add support of middlewares. He added PR, but didn't merge it
kardeiz/jsonrpc-v2#23

@fundon
Copy link
Member Author

fundon commented May 30, 2024

In jsonrpc, there are some examples about actix.
You can follow actix's middleware guide.

@mymtw
Copy link

mymtw commented May 30, 2024

ok thank you

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

No branches or pull requests

2 participants