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

Can the plug-in not expose the port, the main service exposed one is OK? #318

Open
zhanbei1 opened this issue Oct 10, 2024 · 0 comments
Open

Comments

@zhanbei1
Copy link

Plugins implemented using go-plugin require an RPC port each time, which is sometimes not allowed on the client's business server.

And I have a requirement: the plug-in collects metrics on the server, reports them to the master, and hopefully the master manages the plug-in.

I had a whimper about whether I could open a port on the master service and then accept all plug-ins, passing the port exposed by the master service to the plug-in when the master service starts the plug-in.

I'm not sure if this is feasible or if it's different from what the go-plugin project was created for.

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

1 participant