0.8.1 • Published 1 month ago

littlehorse-client v0.8.1

Weekly downloads
-
License
-
Repository
-
Last release
1 month ago

Littlehorse gRPC Client

This is the generated library to perform gRPC calls to littlehorse server from nodejs. For documentation on how to use this library, please go to the LittleHorse website.

Installation

npm install littlehorse-client

Usage

With Properties File

# File located at /example/littlehorse.config

LHC_API_HOST=local.littlehorse.cloud
LHC_API_PORT=2023
LHC_API_PROTOCOL=SSL
LHC_TENANT_ID=example
import { LHConfig } from 'littlehorse-client'

const config = new LHConfig.fromPropertiesFile('/example/littlehorse.config')

const client = config.getClient({
  // accessToken: "..." // optionally provide an OAuth token
})

// client exposes all gRPC methods
await client.whoami({})
await client.getTaskDef({ name: 'sample-task' })
await client.getWfRun({ id: '1674938f8aca437e963083020fa19182' })

From config object

import { LHConfig } from 'littlehorse-client'

const config = new LHConfig.from({
  apiHost: 'local.littlehorse.cloud',
  apiPort: '2023',
  protocol: 'PLAINTEXT',
  tenantId: 'example',
})

const client = config.getClient({
  // accessToken: "..." // optionally provide an OAuth token
})

await client.whoami({})
await client.getTaskDef({ name: 'sample-task' })
await client.getWfRun({ id: '1674938f8aca437e963083020fa19182' })
0.8.1

1 month ago

0.8.0

2 months ago

0.0.3

2 months ago

0.7.2

2 months ago

0.7.1

2 months ago

0.0.1

2 months ago

0.0.0

2 months ago