Debian Codegraph @

varlink/tests/org.example.encoding.varlink

raw
1 # Example Varlink service
2 interface org.example.encoding
3
4 type State (
5 start: ?bool,
6 progress: ?int,
7 end: ?bool
8 )
9
10 type Shipment (
11 name: string,
12 description: string,
13 size: int,
14 weight: ?int
15 )
16
17 type Order (
18 shipments: []Shipment,
19 order_num: int,
20 customer: string
21 )
22
23 # Returns the same string
24 method Ping(ping: string) -> (pong: string)
25
26 # Returns a fake order given an order number
27 method GetOrder(num: int) -> (order: Order)