greentic-interfaces 1.1.1

Greentic ABI: WIT contracts, generated bindings, thin mappers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: MIT

package greentic:lifecycle@1.0.0;

/// Optional lifecycle hooks components may expose.
interface lifecycle-v1 {
  enum lifecycle-health {
    ok,
  }

  init: func();
  health: func() -> result<lifecycle-health, string>;
  shutdown: func();
}

world component-lifecycle {
  export lifecycle-v1;
}