github.com/pouriasharifi/gqlgen@v0.7.2/codegen/testserver/resolver.go (about) 1 package testserver 2 3 import ( 4 "context" 5 6 introspection1 "github.com/99designs/gqlgen/codegen/testserver/introspection" 7 "github.com/99designs/gqlgen/codegen/testserver/invalid-packagename" 8 ) 9 10 type Resolver struct{} 11 12 func (r *Resolver) ForcedResolver() ForcedResolverResolver { 13 return &forcedResolverResolver{r} 14 } 15 func (r *Resolver) ModelMethods() ModelMethodsResolver { 16 return &modelMethodsResolver{r} 17 } 18 func (r *Resolver) Query() QueryResolver { 19 return &queryResolver{r} 20 } 21 func (r *Resolver) Subscription() SubscriptionResolver { 22 return &subscriptionResolver{r} 23 } 24 func (r *Resolver) User() UserResolver { 25 return &userResolver{r} 26 } 27 28 type forcedResolverResolver struct{ *Resolver } 29 30 func (r *forcedResolverResolver) Field(ctx context.Context, obj *ForcedResolver) (*Circle, error) { 31 panic("not implemented") 32 } 33 34 type modelMethodsResolver struct{ *Resolver } 35 36 func (r *modelMethodsResolver) ResolverField(ctx context.Context, obj *ModelMethods) (bool, error) { 37 panic("not implemented") 38 } 39 40 type queryResolver struct{ *Resolver } 41 42 func (r *queryResolver) InvalidIdentifier(ctx context.Context) (*invalid_packagename.InvalidIdentifier, error) { 43 panic("not implemented") 44 } 45 func (r *queryResolver) Collision(ctx context.Context) (*introspection1.It, error) { 46 panic("not implemented") 47 } 48 func (r *queryResolver) MapInput(ctx context.Context, input *map[string]interface{}) (*bool, error) { 49 panic("not implemented") 50 } 51 func (r *queryResolver) Recursive(ctx context.Context, input *RecursiveInputSlice) (*bool, error) { 52 panic("not implemented") 53 } 54 func (r *queryResolver) NestedInputs(ctx context.Context, input [][]*OuterInput) (*bool, error) { 55 panic("not implemented") 56 } 57 func (r *queryResolver) NestedOutputs(ctx context.Context) ([][]*OuterObject, error) { 58 panic("not implemented") 59 } 60 func (r *queryResolver) Keywords(ctx context.Context, input *Keywords) (bool, error) { 61 panic("not implemented") 62 } 63 func (r *queryResolver) Shapes(ctx context.Context) ([]*Shape, error) { 64 panic("not implemented") 65 } 66 func (r *queryResolver) ErrorBubble(ctx context.Context) (*Error, error) { 67 panic("not implemented") 68 } 69 func (r *queryResolver) ModelMethods(ctx context.Context) (*ModelMethods, error) { 70 panic("not implemented") 71 } 72 func (r *queryResolver) Valid(ctx context.Context) (string, error) { 73 panic("not implemented") 74 } 75 func (r *queryResolver) User(ctx context.Context, id int) (User, error) { 76 panic("not implemented") 77 } 78 func (r *queryResolver) NullableArg(ctx context.Context, arg *int) (*string, error) { 79 panic("not implemented") 80 } 81 func (r *queryResolver) KeywordArgs(ctx context.Context, breakArg string, defaultArg string, funcArg string, interfaceArg string, selectArg string, caseArg string, deferArg string, goArg string, mapArg string, structArg string, chanArg string, elseArg string, gotoArg string, packageArg string, switchArg string, constArg string, fallthroughArg string, ifArg string, rangeArg string, typeArg string, continueArg string, forArg string, importArg string, returnArg string, varArg string) (bool, error) { 82 panic("not implemented") 83 } 84 85 type subscriptionResolver struct{ *Resolver } 86 87 func (r *subscriptionResolver) Updated(ctx context.Context) (<-chan string, error) { 88 panic("not implemented") 89 } 90 func (r *subscriptionResolver) InitPayload(ctx context.Context) (<-chan string, error) { 91 panic("not implemented") 92 } 93 94 type userResolver struct{ *Resolver } 95 96 func (r *userResolver) Friends(ctx context.Context, obj *User) ([]User, error) { 97 panic("not implemented") 98 }