forked from sensu/sensu-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
node.gql.go
40 lines (35 loc) · 1.49 KB
/
node.gql.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
// Code generated by scripts/gengraphql.go. DO NOT EDIT.
package schema
import (
graphql1 "github.com/graphql-go/graphql"
graphql "github.com/sensu/sensu-go/graphql"
)
// NodeType Node describes an object with an ID.
var NodeType = graphql.NewType("Node", graphql.InterfaceKind)
// RegisterNode registers Node object type with given service.
func RegisterNode(svc *graphql.Service, impl graphql.InterfaceTypeResolver) {
svc.RegisterInterface(_InterfaceTypeNodeDesc, impl)
}
func _InterfaceTypeNodeConfigFn() graphql1.InterfaceConfig {
return graphql1.InterfaceConfig{
Description: "Node describes an object with an ID.",
Fields: graphql1.Fields{"id": &graphql1.Field{
Args: graphql1.FieldConfigArgument{},
DeprecationReason: "",
Description: "The ID of an object",
Name: "id",
Type: graphql1.NewNonNull(graphql1.ID),
}},
Name: "Node",
ResolveType: func(_ graphql1.ResolveTypeParams) *graphql1.Object {
// NOTE:
// Panic by default. Intent is that when Service is invoked, values of
// these fields are updated with instantiated resolvers. If these
// defaults are called it is most certainly programmer err.
// If you're see this comment then: 'Whoops! Sorry, my bad.'
panic("Unimplemented; see InterfaceTypeResolver.")
},
}
}
// describe Node's configuration; kept private to avoid unintentional tampering of configuration at runtime.
var _InterfaceTypeNodeDesc = graphql.InterfaceDesc{Config: _InterfaceTypeNodeConfigFn}