forked from sensu/sensu-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scalars.gql.go
103 lines (93 loc) · 4.75 KB
/
scalars.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Code generated by scripts/gengraphql.go. DO NOT EDIT.
package schema
import (
graphql1 "github.com/graphql-go/graphql"
ast "github.com/graphql-go/graphql/language/ast"
graphql "github.com/sensu/sensu-go/graphql"
)
/*
JSONType ... JSON The JSON type describes any arbitrary JSON compatible data.
- Roughly equilevant to `union JSON = Int | Float | String | Boolean` however
can also be a map or list of arbitrary length.
- Despite looking like an an object it's fields **cannot** be selected.
*/
var JSONType = graphql.NewType("JSON", graphql.ScalarKind)
// RegisterJSON registers JSON object type with given service.
func RegisterJSON(svc *graphql.Service, impl graphql.ScalarResolver) {
svc.RegisterScalar(_ScalarTypeJSONDesc, impl)
}
// describe JSON's configuration; kept private to avoid unintentional tampering of configuration at runtime.
var _ScalarTypeJSONDesc = graphql.ScalarDesc{Config: func() graphql1.ScalarConfig {
return graphql1.ScalarConfig{
Description: "The JSON type describes any arbitrary JSON compatible data.\n\n- Roughly equilevant to `union JSON = Int | Float | String | Boolean` however\n can also be a map or list of arbitrary length.\n- Despite looking like an an object it's fields **cannot** be selected.",
Name: "JSON",
ParseLiteral: func(_ ast.Value) interface{} {
// 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 ScalarResolver.")
},
ParseValue: func(_ interface{}) interface{} {
// 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 ScalarResolver.")
},
Serialize: func(_ interface{}) interface{} {
// 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 ScalarResolver.")
},
}
}}
/*
UintType ... Uint The Uint scalar type represents a unsigned 32 bit integer. Response formats that
support an unsigned 32‐bit integer or a number type should use that type to
represent this scalar.
**NOTE:** As numbers are represented as double-precision floating point numbers
in Javascript the largest possible value is 2^53. As such 32 bit is used as the
lowest common denominator.
*/
var UintType = graphql.NewType("Uint", graphql.ScalarKind)
// RegisterUint registers Uint object type with given service.
func RegisterUint(svc *graphql.Service, impl graphql.ScalarResolver) {
svc.RegisterScalar(_ScalarTypeUintDesc, impl)
}
// describe Uint's configuration; kept private to avoid unintentional tampering of configuration at runtime.
var _ScalarTypeUintDesc = graphql.ScalarDesc{Config: func() graphql1.ScalarConfig {
return graphql1.ScalarConfig{
Description: "The Uint scalar type represents a unsigned 32 bit integer. Response formats that\nsupport an unsigned 32‐bit integer or a number type should use that type to\nrepresent this scalar.\n\n**NOTE:** As numbers are represented as double-precision floating point numbers\nin Javascript the largest possible value is 2^53. As such 32 bit is used as the\nlowest common denominator.",
Name: "Uint",
ParseLiteral: func(_ ast.Value) interface{} {
// 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 ScalarResolver.")
},
ParseValue: func(_ interface{}) interface{} {
// 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 ScalarResolver.")
},
Serialize: func(_ interface{}) interface{} {
// 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 ScalarResolver.")
},
}
}}