Sha256: de273de79fd6597a87d8c75e6c2e709dd14db807545307f3263a972f5ffce1da

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

controller :my_controller do
  services :vm

  action :my_action do
    on_entry %{
      var entry = {
        hello: "world"
      }

      page = NewPage("test");
      SetPageHead(page, "head");
      SetPageNext(page, "next");
      EntryInsert(page, 0, entry);

      var watch_info = {
        ns: "spec",
        id: "test"
      }

      var write_info = {
        ns: "spec",
        page: page
      };

      Request("vm", "watch", watch_info);
      Request("vm", "write", write_info);
    }

    on "read_res", %{
      read_res_params = params;
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flok-0.0.40 spec/kern/assets/vm/controller11.rb
flok-0.0.39 spec/kern/assets/vm/controller11.rb