1// Code generated by scripts/gengraphql.go. DO NOT EDIT. 2 3package schema 4 5import ( 6 graphql1 "github.com/graphql-go/graphql" 7 ast "github.com/graphql-go/graphql/language/ast" 8 graphql "github.com/sensu/sensu-go/graphql" 9) 10 11/* 12JSONType ... JSON The JSON type describes any arbitrary JSON compatible data. 13 14- Roughly equilevant to `union JSON = Int | Float | String | Boolean` however 15 can also be a map or list of arbitrary length. 16- Despite looking like an an object it's fields **cannot** be selected. 17*/ 18var JSONType = graphql.NewType("JSON", graphql.ScalarKind) 19 20// RegisterJSON registers JSON object type with given service. 21func RegisterJSON(svc *graphql.Service, impl graphql.ScalarResolver) { 22 svc.RegisterScalar(_ScalarTypeJSONDesc, impl) 23} 24 25// describe JSON's configuration; kept private to avoid unintentional tampering of configuration at runtime. 26var _ScalarTypeJSONDesc = graphql.ScalarDesc{Config: func() graphql1.ScalarConfig { 27 return graphql1.ScalarConfig{ 28 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.", 29 Name: "JSON", 30 ParseLiteral: func(_ ast.Value) interface{} { 31 // NOTE: 32 // Panic by default. Intent is that when Service is invoked, values of 33 // these fields are updated with instantiated resolvers. If these 34 // defaults are called it is most certainly programmer err. 35 // If you're see this comment then: 'Whoops! Sorry, my bad.' 36 panic("Unimplemented; see ScalarResolver.") 37 }, 38 ParseValue: func(_ interface{}) interface{} { 39 // NOTE: 40 // Panic by default. Intent is that when Service is invoked, values of 41 // these fields are updated with instantiated resolvers. If these 42 // defaults are called it is most certainly programmer err. 43 // If you're see this comment then: 'Whoops! Sorry, my bad.' 44 panic("Unimplemented; see ScalarResolver.") 45 }, 46 Serialize: func(_ interface{}) interface{} { 47 // NOTE: 48 // Panic by default. Intent is that when Service is invoked, values of 49 // these fields are updated with instantiated resolvers. If these 50 // defaults are called it is most certainly programmer err. 51 // If you're see this comment then: 'Whoops! Sorry, my bad.' 52 panic("Unimplemented; see ScalarResolver.") 53 }, 54 } 55}} 56 57/* 58UintType ... Uint The Uint scalar type represents a unsigned 32 bit integer. Response formats that 59support an unsigned 32‐bit integer or a number type should use that type to 60represent this scalar. 61 62**NOTE:** As numbers are represented as double-precision floating point numbers 63in Javascript the largest possible value is 2^53. As such 32 bit is used as the 64lowest common denominator. 65*/ 66var UintType = graphql.NewType("Uint", graphql.ScalarKind) 67 68// RegisterUint registers Uint object type with given service. 69func RegisterUint(svc *graphql.Service, impl graphql.ScalarResolver) { 70 svc.RegisterScalar(_ScalarTypeUintDesc, impl) 71} 72 73// describe Uint's configuration; kept private to avoid unintentional tampering of configuration at runtime. 74var _ScalarTypeUintDesc = graphql.ScalarDesc{Config: func() graphql1.ScalarConfig { 75 return graphql1.ScalarConfig{ 76 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.", 77 Name: "Uint", 78 ParseLiteral: func(_ ast.Value) interface{} { 79 // NOTE: 80 // Panic by default. Intent is that when Service is invoked, values of 81 // these fields are updated with instantiated resolvers. If these 82 // defaults are called it is most certainly programmer err. 83 // If you're see this comment then: 'Whoops! Sorry, my bad.' 84 panic("Unimplemented; see ScalarResolver.") 85 }, 86 ParseValue: func(_ interface{}) interface{} { 87 // NOTE: 88 // Panic by default. Intent is that when Service is invoked, values of 89 // these fields are updated with instantiated resolvers. If these 90 // defaults are called it is most certainly programmer err. 91 // If you're see this comment then: 'Whoops! Sorry, my bad.' 92 panic("Unimplemented; see ScalarResolver.") 93 }, 94 Serialize: func(_ interface{}) interface{} { 95 // NOTE: 96 // Panic by default. Intent is that when Service is invoked, values of 97 // these fields are updated with instantiated resolvers. If these 98 // defaults are called it is most certainly programmer err. 99 // If you're see this comment then: 'Whoops! Sorry, my bad.' 100 panic("Unimplemented; see ScalarResolver.") 101 }, 102 } 103}} 104