hyf

Context-aware query service for Radroots
git clone https://radroots.dev/git/hyf.git
Log | Files | Refs | README | LICENSE

orchestration.mojo (602B)


      1 from std.collections import List
      2 
      3 
      4 def supported_operations() -> List[String]:
      5     var operations = List[String]()
      6     operations.append("farm_update.interpret")
      7     operations.append("buyer_request.interpret")
      8     operations.append("buyer_request.match")
      9     return operations^
     10 
     11 
     12 def application_layer_uses_transport_types() -> Bool:
     13     return False
     14 
     15 
     16 def application_layer_owns_business_state() -> Bool:
     17     return False
     18 
     19 
     20 def operation_is_supported(operation: String) -> Bool:
     21     for candidate in supported_operations():
     22         if candidate == operation:
     23             return True
     24     return False