Skip to content

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

@zhanbei1

Description

@zhanbei1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions