T1B0 / iggy-bin

iggy-rs binary protocol client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iggy-bin

iggy-bin is an unofficial node.js client for iggy-rs's binary protocol, written with typescript. it currently only support tcp & tls transports.

diclaimer: although all iggy commands & basic client/stream are implemented this is still a WIP provided as is and has still a long way to go to be considered "battle tested".

install

$ npm i iggy-bin

basic usage

import { Client } from 'iggy-bin';

const credentials = { username: 'iggy', password: 'iggy' };

const c = new Client({
  transport: 'TCP',
  options: { port: 8090, host: '127.0.0.1' },
  credentials
});

const stats = await c.system.getStats();

use sources

Install

$ npm ci

build

$ npm run build

test

$ npm run test

About

iggy-rs binary protocol client


Languages

Language:TypeScript 98.6%Language:JavaScript 1.4%