This package has been deprecated

Author message:

Please use @liteflow/api

@mesg/api
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@mesg/api

Website - Docs - Forum - Chat - Blog

This library responsible for the communication with the MESG Engine API. It handles the conversion of the data to protobuf messages sent to the GRPC server providing functions with promises for unary calls and event emitters for the different streams that are available in the API.

Contents

Installation

npm install @mesg/api

API

const API = require('@mesg/api')

const api = new API('localhost:50052')

You can now access all the different resources of the MESG engine with the following pattern:

api.resource.action(parameters)

Here are few examples:

  • list all the services: api.service.list({})
  • create a service: api.service.create({ tasks: ... })
  • get a stream of executions: api.execution.stream({})

More details about the different API available here

Readme

Keywords

none

Package Sidebar

Install

npm i @mesg/api

Weekly Downloads

1

Version

0.2.0

License

ISC

Unpacked Size

543 kB

Total Files

61

Last publish

Collaborators

  • nicolasmahe
  • anthony-mesg
  • nicolas-mesg