File: org.example.encoding.varlink

package info (click to toggle)
python-varlink 32.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 328 kB
  • sloc: python: 2,705; sh: 177; makefile: 29
file content (27 lines) | stat: -rw-r--r-- 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Example Varlink service
interface org.example.encoding

type State (
  start: ?bool,
  progress: ?int,
  end: ?bool
)

type Shipment (
  name: string,
  description: string,
  size: int,
  weight: ?int
)

type Order (
  shipments: []Shipment,
  order_num: int,
  customer: string
)

# Returns the same string
method Ping(ping: string) -> (pong: string)

# Returns a fake order given an order number
method GetOrder(num: int) -> (order: Order)