Socket
Socket
Sign inDemoInstall

agent-api

Package Overview
Dependencies
137
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

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 *


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

  1. Go to releases page and download flatc_windows.zip
  2. Extract exe to any folder
  3. Copy .fbs file to folder where flatc.exe lies.
  4. 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

Last updated on 28 Dec 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc