🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-api

```bash sudo docker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 80:15672 -p 15674:15674 -e RABBITMQ_DEFAULT_USER=bigbugbunny -e RABBITMQ_DEFAULT_PASS=543 -e RABBITMQ_VM_MEMORY_HIGH_WATERMARK=56% rabbitmq:3-management ``` ### Compiling *

2.5.3
latest
77

Supply Chain Security

100

Vulnerability

84

Quality

75

Maintenance

100

License

Version published
Weekly downloads
2
-75%
Maintainers
1
Weekly downloads
 
Created

run RabitMQ into docker:

sudo docker run -d --hostname my-rabbit --name some-rabbit -p 5672:5672 -p 80:15672 -p 15674:15674 -e RABBITMQ_DEFAULT_USER=bigbugbunny -e RABBITMQ_DEFAULT_PASS=543 -e RABBITMQ_VM_MEMORY_HIGH_WATERMARK=56% rabbitmq:3-management

Compiling *.fbs file to TS code

To compile schema file in TypeScript flatc executable should be build or downloaded.

Installing flatc in Windows environment

  • Go to releases page and download flatc_windows.zip
  • Extract exe to any folder
  • Copy .fbs file to folder where flatc.exe lies.
  • Run following command

flatc telemetry.fbs --ts

Installing flatc in OSx environment

To install flatc open terminal and run following command

brew install flatbuffers

To comile scheme in TS code run this:

flatc path/to/file/telemetry.fbs --ts

Updating fbs scheme file

Copy contents of new schema file to agent-api/agent-telemetry.fbs Run npm script to update TS code:

npm run gen-fb

API versioning

To call specific version of API endpoint client should send request with HTTP header that specifies the requested version of the API to use:

curl --header "X-Api-Version: 1.0.0" htts://localhost:3010/agent/jobstatus

Server accepts versions in semver notation.

The server responds with the following headers:

  • X-Requested-Version
  • X-Matched-Version

FAQs

Package last updated on 28 Dec 2020

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