Skip to main content

Getting Started

You can start the boilerplate with deno run --allow-all --unstable main.ts

  • Client interations are done with so called “operations”, documentation
  • Server side interations are “messages”, documentation

Features

Ping

CLI

Monitoring

MonGet

Get a mon value (from the state, deno, …)

ddappsctl mon get -k /ddapps/node/state/ready

{
  type: "ClientResponse",
  source: "localhost",
  destination: "Client",
  payload: {
    token: "e1h4jxyr6i4",
    payload: { op: "Get", metric: { key: "/ddapps/node/state/ready", value: true } },
    type: "MonOp",
    timestamp: 1638448558556
  }
}

MonSet

Set a value in the state

ddappsctl mon set -k /ddapps/node/state/ready -v false

{
  type: "ClientResponse",
  source: "localhost",
  destination: "Client",
  payload: {
    token: "j91jr0nmzoj",
    payload: { op: "Set", metric: { key: "/ddapps/node/state/ready", value: false } },
    type: "MonOp",
    timestamp: 1638448046581
  }
}

Usage

Messages

Operations

Testing

CLI