github.com/senomas/gqlgen@v0.17.11-0.20220626120754-9aee61b0716a/plugin/resolvergen/testdata/singlefile/out/resolver.go (about) 1 package customresolver 2 3 // THIS CODE IS A STARTING POINT ONLY. IT WILL NOT BE UPDATED WITH SCHEMA CHANGES. 4 5 import ( 6 "context" 7 ) 8 9 type CustomResolverType struct{} 10 11 func (r *queryCustomResolverType) Resolver(ctx context.Context) (*Resolver, error) { 12 panic("not implemented") 13 } 14 15 func (r *resolverCustomResolverType) Name(ctx context.Context, obj *Resolver) (string, error) { 16 panic("not implemented") 17 } 18 19 // Query returns QueryResolver implementation. 20 func (r *CustomResolverType) Query() QueryResolver { return &queryCustomResolverType{r} } 21 22 // Resolver returns ResolverResolver implementation. 23 func (r *CustomResolverType) Resolver() ResolverResolver { return &resolverCustomResolverType{r} } 24 25 type queryCustomResolverType struct{ *CustomResolverType } 26 type resolverCustomResolverType struct{ *CustomResolverType }