-
-
Notifications
You must be signed in to change notification settings - Fork 328
/
schema.go
41 lines (28 loc) · 830 Bytes
/
schema.go
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// This file is generated by "./lib/proto/generate"
package proto
/*
Schema
This domain is deprecated.
*/
// SchemaDomain Description of the protocol domain.
type SchemaDomain struct {
// Name Domain name.
Name string `json:"name"`
// Version Domain version.
Version string `json:"version"`
}
// SchemaGetDomains Returns supported domains.
type SchemaGetDomains struct {
}
// ProtoReq name
func (m SchemaGetDomains) ProtoReq() string { return "Schema.getDomains" }
// Call the request
func (m SchemaGetDomains) Call(c Client) (*SchemaGetDomainsResult, error) {
var res SchemaGetDomainsResult
return &res, call(m.ProtoReq(), m, &res, c)
}
// SchemaGetDomainsResult Returns supported domains.
type SchemaGetDomainsResult struct {
// Domains List of supported domains.
Domains []*SchemaDomain `json:"domains"`
}