🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

src.myowndisk.com/libs/plugins

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

src.myowndisk.com/libs/plugins

Go Modules
Version
v0.0.0-20210424214039-fefd8dc5b220
Version published
Created
Source

plugins

Package plugins provides support for creating plugin-based applications.

Following workflow is supposed:

  • main application creates RPC Host service;
  • plugin starts and connects to the RPC Host:
    • plugin informs RPC Host about service, provided by that plugin and requests port to serve on;
    • RPC Host checks if such service is not provided by other connected plugin and generates port for plugin to serve on;
    • plugin starts RPC server on port, provided by RPC Host, and informs RPC Host about it;
    • RPC Host registers plugin service;
  • when plugin terminates, it informs RPC Host; RPC Host unregisters plugin service;
  • when RPC Host terminates, it informs all connected plugins; plugins terminates;
  • when main application need to invoke some service method, RPC Host is used for dispatch it;

For handling remote calls net/rpc package usage is supposed. A plugin must register object(s) that will be used for handling remote calls.

FAQs

Package last updated on 24 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts