vendor/github.com/go-rod/rod/lib/proto/schema.go
38 lines · 805 bytes
1// This file is generated by "./lib/proto/generate"
2
3package proto
4
5/*
6
7Schema
8
9This domain is deprecated.
10
11*/
12
13// SchemaDomain Description of the protocol domain.
14type SchemaDomain struct {
15 // Name Domain name.
16 Name string `json:"name"`
17
18 // Version Domain version.
19 Version string `json:"version"`
20}
21
22// SchemaGetDomains Returns supported domains.
23type SchemaGetDomains struct{}
24
25// ProtoReq name.
26func (m SchemaGetDomains) ProtoReq() string { return "Schema.getDomains" }
27
28// Call the request.
29func (m SchemaGetDomains) Call(c Client) (*SchemaGetDomainsResult, error) {
30 var res SchemaGetDomainsResult
31 return &res, call(m.ProtoReq(), m, &res, c)
32}
33
34// SchemaGetDomainsResult ...
35type SchemaGetDomainsResult struct {
36 // Domains List of supported domains.
37 Domains []*SchemaDomain `json:"domains"`
38}