octavia-client
v1.0.1
Published
octavia-client is a client for an octavia-api.
Downloads
8
Maintainers
Readme
octavia-client
octavia-client is a client for an octavia-api.
Installation
To install the Octavia-Client module, run the following command in your terminal:
npm install octavia-client
Getting Started.
use with octavia-api. octavia-api
const octaviaClient = require("octavia-client")
const octaviaConfig = octaviaClient.createConfig({
uri: "<OCTAVIA_API_URL>",
token: "<OCTAVIA_API_TOKEN>",
})
const DB = new octaviaClient.OctaviaClient({
database: "databaseName",
password: "databasePassword",
config: octaviaConfig
});
(async () => {
const databaseInformation = await DB.info()
console.log(databaseInformation)
// use as a normal octavia-db methods
// https://www.npmjs.com/package/octavia-db
})()
Options
const octaviaConfig = octaviaClient.createConfig({
uri: "<OCTAVIA_API_URL>",
token: "<OCTAVIA_API_TOKEN>",
path: "/octavia-db",
headers: {
// your http headers
}
})