Gaza Machine

gaza_machine is micro service that execute commands given by the client.

gaza_machine is a core part of gaza, still thought it can be used seperately.

Usage

Create a machine server

final server = await GazaMachine.create(8000);

Connect to the machine

final client = GazaMachine.connect(8000, "0.0.0.0");
// Or if you are running the server on the same machine:
// final client = server.client;

Local machine

final machine = GazaMachine.localMachine("/home/z/Documents/machine-data");

Build

1. Install the protobuf compiler

2. Install the protobuf plugin for dart

dart pub global activate protoc_plugin

3. Generate proto files:

./scripts/generate_protos.py

Test

dart test --reporter=expanded

Libraries

gaza_machine