1.6.1 • Published 7 years ago

lsq v1.6.1

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

lsq

The programmatic interface to the lsq.io runtime environment.

API

var lsq = require('lsq')

All methods are asynchronous, and take a node-style error-first callback as last argument. If no callback is supplied, a promise is returned instead.

lsq.config.get() -> JSON

Fetches the JSON configuration for the current service.

lsq.services.list() -> Array

Returns all the currently known service names.

lsq.services.get(service: String) -> Service

Retrieves a particular service.

Service

  • hostname: String // the hostname or IP address of the service
  • port: Integer // the port of the service
  • toString() { return this.hostname + ':' + this.port }
1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago