1.6.1 • Published 8 years ago

lsq v1.6.1

Weekly downloads
4
License
ISC
Repository
github
Last release
8 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

8 years ago

1.6.0

8 years ago

1.5.0

9 years ago

1.4.1

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago