Using It

This page will guide you through an example, highlighting the unique aspects of Itergia Core.

Deciding On a Data Model

  • There can be multiple lists.
  • A list has a title and items.
  • Items have a position and some text.
  • Both lists and items have stable identifiers assigned to them.

In this walk-through, we will focus on creating lists and appending items. The example source contains the full functionality.

In Itergia Core, the data model is described as a Protocol Buffers file.

syntax = "proto3";

package todo;

message List {
  bytes id = 1;
  string title = 2;
  repeated Item items = 3;
}

message Item {
  bytes id = 1;
  string text = 2;
}

message CreateListParameters {
  List prototype = 1;
}

message AddItemParameters {
  bytes list_id = 1;
  Item prototype = 2;
}

// The other parameter messages left out.