mirror of https://github.com/statping/statping
				
				
				
			
		
			
				
	
	
		
			6765 lines
		
	
	
		
			200 KiB
		
	
	
	
		
			Go
		
	
	
			
		
		
	
	
			6765 lines
		
	
	
		
			200 KiB
		
	
	
	
		
			Go
		
	
	
| // Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
 | |
| 
 | |
| package graphql
 | |
| 
 | |
| import (
 | |
| 	"bytes"
 | |
| 	"context"
 | |
| 	"errors"
 | |
| 	"strconv"
 | |
| 	"sync"
 | |
| 	"time"
 | |
| 
 | |
| 	"github.com/99designs/gqlgen/graphql"
 | |
| 	"github.com/99designs/gqlgen/graphql/introspection"
 | |
| 	"github.com/hunterlong/statping/types"
 | |
| 	"github.com/vektah/gqlparser"
 | |
| 	"github.com/vektah/gqlparser/ast"
 | |
| )
 | |
| 
 | |
| // region    ************************** generated!.gotpl **************************
 | |
| 
 | |
| // NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
 | |
| func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
 | |
| 	return &executableSchema{
 | |
| 		resolvers:  cfg.Resolvers,
 | |
| 		directives: cfg.Directives,
 | |
| 		complexity: cfg.Complexity,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| type Config struct {
 | |
| 	Resolvers  ResolverRoot
 | |
| 	Directives DirectiveRoot
 | |
| 	Complexity ComplexityRoot
 | |
| }
 | |
| 
 | |
| type ResolverRoot interface {
 | |
| 	Checkin() CheckinResolver
 | |
| 	Core() CoreResolver
 | |
| 	Group() GroupResolver
 | |
| 	Message() MessageResolver
 | |
| 	Query() QueryResolver
 | |
| 	Service() ServiceResolver
 | |
| 	User() UserResolver
 | |
| }
 | |
| 
 | |
| type DirectiveRoot struct {
 | |
| }
 | |
| 
 | |
| type ComplexityRoot struct {
 | |
| 	Checkin struct {
 | |
| 		ApiKey      func(childComplexity int) int
 | |
| 		CreatedAt   func(childComplexity int) int
 | |
| 		Failing     func(childComplexity int) int
 | |
| 		Failures    func(childComplexity int) int
 | |
| 		GracePeriod func(childComplexity int) int
 | |
| 		Hits        func(childComplexity int) int
 | |
| 		Id          func(childComplexity int) int
 | |
| 		Interval    func(childComplexity int) int
 | |
| 		LastHit     func(childComplexity int) int
 | |
| 		Name        func(childComplexity int) int
 | |
| 		Service     func(childComplexity int) int
 | |
| 		UpdatedAt   func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	CheckinHit struct {
 | |
| 		CreatedAt func(childComplexity int) int
 | |
| 		From      func(childComplexity int) int
 | |
| 		Id        func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	Core struct {
 | |
| 		CreatedAt   func(childComplexity int) int
 | |
| 		Description func(childComplexity int) int
 | |
| 		Domain      func(childComplexity int) int
 | |
| 		Footer      func(childComplexity int) int
 | |
| 		Name        func(childComplexity int) int
 | |
| 		Started     func(childComplexity int) int
 | |
| 		Timezone    func(childComplexity int) int
 | |
| 		UpdatedAt   func(childComplexity int) int
 | |
| 		UsingCdn    func(childComplexity int) int
 | |
| 		Version     func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	Failure struct {
 | |
| 		CreatedAt func(childComplexity int) int
 | |
| 		ErrorCode func(childComplexity int) int
 | |
| 		Id        func(childComplexity int) int
 | |
| 		Issue     func(childComplexity int) int
 | |
| 		Method    func(childComplexity int) int
 | |
| 		MethodId  func(childComplexity int) int
 | |
| 		PingTime  func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	Group struct {
 | |
| 		CreatedAt func(childComplexity int) int
 | |
| 		Id        func(childComplexity int) int
 | |
| 		Name      func(childComplexity int) int
 | |
| 		Order     func(childComplexity int) int
 | |
| 		Public    func(childComplexity int) int
 | |
| 		UpdatedAt func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	Message struct {
 | |
| 		CreatedAt         func(childComplexity int) int
 | |
| 		Description       func(childComplexity int) int
 | |
| 		EndOn             func(childComplexity int) int
 | |
| 		Id                func(childComplexity int) int
 | |
| 		NotifyBefore      func(childComplexity int) int
 | |
| 		NotifyBeforeScale func(childComplexity int) int
 | |
| 		NotifyMethod      func(childComplexity int) int
 | |
| 		NotifyUsers       func(childComplexity int) int
 | |
| 		StartOn           func(childComplexity int) int
 | |
| 		Title             func(childComplexity int) int
 | |
| 		UpdatedAt         func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	Query struct {
 | |
| 		Checkin  func(childComplexity int, id int64) int
 | |
| 		Checkins func(childComplexity int) int
 | |
| 		Core     func(childComplexity int) int
 | |
| 		Group    func(childComplexity int, id int64) int
 | |
| 		Groups   func(childComplexity int) int
 | |
| 		Message  func(childComplexity int, id int64) int
 | |
| 		Messages func(childComplexity int) int
 | |
| 		Service  func(childComplexity int, id int64) int
 | |
| 		Services func(childComplexity int) int
 | |
| 		User     func(childComplexity int, id int64) int
 | |
| 		Users    func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	Service struct {
 | |
| 		AllowNotifications func(childComplexity int) int
 | |
| 		AvgResponse        func(childComplexity int) int
 | |
| 		CreatedAt          func(childComplexity int) int
 | |
| 		Domain             func(childComplexity int) int
 | |
| 		Expected           func(childComplexity int) int
 | |
| 		ExpectedStatus     func(childComplexity int) int
 | |
| 		Failures           func(childComplexity int) int
 | |
| 		Group              func(childComplexity int) int
 | |
| 		Headers            func(childComplexity int) int
 | |
| 		Id                 func(childComplexity int) int
 | |
| 		Interval           func(childComplexity int) int
 | |
| 		LastOnline         func(childComplexity int) int
 | |
| 		LastStatusCode     func(childComplexity int) int
 | |
| 		Latency            func(childComplexity int) int
 | |
| 		Method             func(childComplexity int) int
 | |
| 		Name               func(childComplexity int) int
 | |
| 		Online             func(childComplexity int) int
 | |
| 		Online24Hours      func(childComplexity int) int
 | |
| 		Order              func(childComplexity int) int
 | |
| 		Permalink          func(childComplexity int) int
 | |
| 		PingTime           func(childComplexity int) int
 | |
| 		Port               func(childComplexity int) int
 | |
| 		PostData           func(childComplexity int) int
 | |
| 		Public             func(childComplexity int) int
 | |
| 		Timeout            func(childComplexity int) int
 | |
| 		Type               func(childComplexity int) int
 | |
| 		UpdatedAt          func(childComplexity int) int
 | |
| 	}
 | |
| 
 | |
| 	User struct {
 | |
| 		Admin     func(childComplexity int) int
 | |
| 		ApiKey    func(childComplexity int) int
 | |
| 		ApiSecret func(childComplexity int) int
 | |
| 		CreatedAt func(childComplexity int) int
 | |
| 		Email     func(childComplexity int) int
 | |
| 		Id        func(childComplexity int) int
 | |
| 		UpdatedAt func(childComplexity int) int
 | |
| 		Username  func(childComplexity int) int
 | |
| 	}
 | |
| }
 | |
| 
 | |
| type CheckinResolver interface {
 | |
| 	Service(ctx context.Context, obj *types.Checkin) (*types.Service, error)
 | |
| 
 | |
| 	Failures(ctx context.Context, obj *types.Checkin) ([]*types.Failure, error)
 | |
| }
 | |
| type CoreResolver interface {
 | |
| 	Footer(ctx context.Context, obj *types.Core) (string, error)
 | |
| 
 | |
| 	Timezone(ctx context.Context, obj *types.Core) (string, error)
 | |
| 	UsingCdn(ctx context.Context, obj *types.Core) (bool, error)
 | |
| }
 | |
| type GroupResolver interface {
 | |
| 	Public(ctx context.Context, obj *types.Group) (bool, error)
 | |
| }
 | |
| type MessageResolver interface {
 | |
| 	NotifyUsers(ctx context.Context, obj *types.Message) (bool, error)
 | |
| 	NotifyMethod(ctx context.Context, obj *types.Message) (bool, error)
 | |
| 	NotifyBefore(ctx context.Context, obj *types.Message) (int, error)
 | |
| }
 | |
| type QueryResolver interface {
 | |
| 	Core(ctx context.Context) (*types.Core, error)
 | |
| 	Service(ctx context.Context, id int64) (*types.Service, error)
 | |
| 	Services(ctx context.Context) ([]*types.Service, error)
 | |
| 	Group(ctx context.Context, id int64) (*types.Group, error)
 | |
| 	Groups(ctx context.Context) ([]*types.Group, error)
 | |
| 	User(ctx context.Context, id int64) (*types.User, error)
 | |
| 	Users(ctx context.Context) ([]*types.User, error)
 | |
| 	Checkin(ctx context.Context, id int64) (*types.Checkin, error)
 | |
| 	Checkins(ctx context.Context) ([]*types.Checkin, error)
 | |
| 	Message(ctx context.Context, id int64) (*types.Message, error)
 | |
| 	Messages(ctx context.Context) ([]*types.Message, error)
 | |
| }
 | |
| type ServiceResolver interface {
 | |
| 	Expected(ctx context.Context, obj *types.Service) (string, error)
 | |
| 
 | |
| 	PostData(ctx context.Context, obj *types.Service) (string, error)
 | |
| 
 | |
| 	AllowNotifications(ctx context.Context, obj *types.Service) (bool, error)
 | |
| 	Public(ctx context.Context, obj *types.Service) (bool, error)
 | |
| 	Group(ctx context.Context, obj *types.Service) (*types.Group, error)
 | |
| 	Headers(ctx context.Context, obj *types.Service) (string, error)
 | |
| 	Permalink(ctx context.Context, obj *types.Service) (string, error)
 | |
| 
 | |
| 	Online24Hours(ctx context.Context, obj *types.Service) (float64, error)
 | |
| 
 | |
| 	Failures(ctx context.Context, obj *types.Service) ([]*types.Failure, error)
 | |
| }
 | |
| type UserResolver interface {
 | |
| 	Admin(ctx context.Context, obj *types.User) (bool, error)
 | |
| }
 | |
| 
 | |
| type executableSchema struct {
 | |
| 	resolvers  ResolverRoot
 | |
| 	directives DirectiveRoot
 | |
| 	complexity ComplexityRoot
 | |
| }
 | |
| 
 | |
| func (e *executableSchema) Schema() *ast.Schema {
 | |
| 	return parsedSchema
 | |
| }
 | |
| 
 | |
| func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
 | |
| 	ec := executionContext{nil, e}
 | |
| 	_ = ec
 | |
| 	switch typeName + "." + field {
 | |
| 
 | |
| 	case "Checkin.ApiKey":
 | |
| 		if e.complexity.Checkin.ApiKey == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.ApiKey(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.CreatedAt":
 | |
| 		if e.complexity.Checkin.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Failing":
 | |
| 		if e.complexity.Checkin.Failing == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Failing(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Failures":
 | |
| 		if e.complexity.Checkin.Failures == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Failures(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.GracePeriod":
 | |
| 		if e.complexity.Checkin.GracePeriod == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.GracePeriod(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Hits":
 | |
| 		if e.complexity.Checkin.Hits == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Hits(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Id":
 | |
| 		if e.complexity.Checkin.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Id(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Interval":
 | |
| 		if e.complexity.Checkin.Interval == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Interval(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.LastHit":
 | |
| 		if e.complexity.Checkin.LastHit == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.LastHit(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Name":
 | |
| 		if e.complexity.Checkin.Name == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Name(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.Service":
 | |
| 		if e.complexity.Checkin.Service == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.Service(childComplexity), true
 | |
| 
 | |
| 	case "Checkin.UpdatedAt":
 | |
| 		if e.complexity.Checkin.UpdatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Checkin.UpdatedAt(childComplexity), true
 | |
| 
 | |
| 	case "CheckinHit.CreatedAt":
 | |
| 		if e.complexity.CheckinHit.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.CheckinHit.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "CheckinHit.From":
 | |
| 		if e.complexity.CheckinHit.From == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.CheckinHit.From(childComplexity), true
 | |
| 
 | |
| 	case "CheckinHit.Id":
 | |
| 		if e.complexity.CheckinHit.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.CheckinHit.Id(childComplexity), true
 | |
| 
 | |
| 	case "Core.CreatedAt":
 | |
| 		if e.complexity.Core.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Core.Description":
 | |
| 		if e.complexity.Core.Description == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Description(childComplexity), true
 | |
| 
 | |
| 	case "Core.Domain":
 | |
| 		if e.complexity.Core.Domain == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Domain(childComplexity), true
 | |
| 
 | |
| 	case "Core.Footer":
 | |
| 		if e.complexity.Core.Footer == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Footer(childComplexity), true
 | |
| 
 | |
| 	case "Core.Name":
 | |
| 		if e.complexity.Core.Name == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Name(childComplexity), true
 | |
| 
 | |
| 	case "Core.Started":
 | |
| 		if e.complexity.Core.Started == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Started(childComplexity), true
 | |
| 
 | |
| 	case "Core.Timezone":
 | |
| 		if e.complexity.Core.Timezone == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Timezone(childComplexity), true
 | |
| 
 | |
| 	case "Core.UpdatedAt":
 | |
| 		if e.complexity.Core.UpdatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.UpdatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Core.UsingCdn":
 | |
| 		if e.complexity.Core.UsingCdn == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.UsingCdn(childComplexity), true
 | |
| 
 | |
| 	case "Core.Version":
 | |
| 		if e.complexity.Core.Version == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Core.Version(childComplexity), true
 | |
| 
 | |
| 	case "Failure.CreatedAt":
 | |
| 		if e.complexity.Failure.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Failure.ErrorCode":
 | |
| 		if e.complexity.Failure.ErrorCode == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.ErrorCode(childComplexity), true
 | |
| 
 | |
| 	case "Failure.Id":
 | |
| 		if e.complexity.Failure.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.Id(childComplexity), true
 | |
| 
 | |
| 	case "Failure.Issue":
 | |
| 		if e.complexity.Failure.Issue == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.Issue(childComplexity), true
 | |
| 
 | |
| 	case "Failure.Method":
 | |
| 		if e.complexity.Failure.Method == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.Method(childComplexity), true
 | |
| 
 | |
| 	case "Failure.MethodId":
 | |
| 		if e.complexity.Failure.MethodId == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.MethodId(childComplexity), true
 | |
| 
 | |
| 	case "Failure.PingTime":
 | |
| 		if e.complexity.Failure.PingTime == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Failure.PingTime(childComplexity), true
 | |
| 
 | |
| 	case "Group.CreatedAt":
 | |
| 		if e.complexity.Group.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Group.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Group.Id":
 | |
| 		if e.complexity.Group.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Group.Id(childComplexity), true
 | |
| 
 | |
| 	case "Group.Name":
 | |
| 		if e.complexity.Group.Name == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Group.Name(childComplexity), true
 | |
| 
 | |
| 	case "Group.Order":
 | |
| 		if e.complexity.Group.Order == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Group.Order(childComplexity), true
 | |
| 
 | |
| 	case "Group.Public":
 | |
| 		if e.complexity.Group.Public == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Group.Public(childComplexity), true
 | |
| 
 | |
| 	case "Group.UpdatedAt":
 | |
| 		if e.complexity.Group.UpdatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Group.UpdatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Message.CreatedAt":
 | |
| 		if e.complexity.Message.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Message.Description":
 | |
| 		if e.complexity.Message.Description == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.Description(childComplexity), true
 | |
| 
 | |
| 	case "Message.EndOn":
 | |
| 		if e.complexity.Message.EndOn == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.EndOn(childComplexity), true
 | |
| 
 | |
| 	case "Message.Id":
 | |
| 		if e.complexity.Message.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.Id(childComplexity), true
 | |
| 
 | |
| 	case "Message.NotifyBefore":
 | |
| 		if e.complexity.Message.NotifyBefore == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.NotifyBefore(childComplexity), true
 | |
| 
 | |
| 	case "Message.NotifyBeforeScale":
 | |
| 		if e.complexity.Message.NotifyBeforeScale == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.NotifyBeforeScale(childComplexity), true
 | |
| 
 | |
| 	case "Message.NotifyMethod":
 | |
| 		if e.complexity.Message.NotifyMethod == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.NotifyMethod(childComplexity), true
 | |
| 
 | |
| 	case "Message.NotifyUsers":
 | |
| 		if e.complexity.Message.NotifyUsers == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.NotifyUsers(childComplexity), true
 | |
| 
 | |
| 	case "Message.StartOn":
 | |
| 		if e.complexity.Message.StartOn == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.StartOn(childComplexity), true
 | |
| 
 | |
| 	case "Message.Title":
 | |
| 		if e.complexity.Message.Title == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.Title(childComplexity), true
 | |
| 
 | |
| 	case "Message.UpdatedAt":
 | |
| 		if e.complexity.Message.UpdatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Message.UpdatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Query.Checkin":
 | |
| 		if e.complexity.Query.Checkin == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		args, err := ec.field_Query_checkin_args(context.TODO(), rawArgs)
 | |
| 		if err != nil {
 | |
| 			return 0, false
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Checkin(childComplexity, args["id"].(int64)), true
 | |
| 
 | |
| 	case "Query.Checkins":
 | |
| 		if e.complexity.Query.Checkins == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Checkins(childComplexity), true
 | |
| 
 | |
| 	case "Query.Core":
 | |
| 		if e.complexity.Query.Core == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Core(childComplexity), true
 | |
| 
 | |
| 	case "Query.Group":
 | |
| 		if e.complexity.Query.Group == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		args, err := ec.field_Query_group_args(context.TODO(), rawArgs)
 | |
| 		if err != nil {
 | |
| 			return 0, false
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Group(childComplexity, args["id"].(int64)), true
 | |
| 
 | |
| 	case "Query.Groups":
 | |
| 		if e.complexity.Query.Groups == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Groups(childComplexity), true
 | |
| 
 | |
| 	case "Query.Message":
 | |
| 		if e.complexity.Query.Message == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		args, err := ec.field_Query_message_args(context.TODO(), rawArgs)
 | |
| 		if err != nil {
 | |
| 			return 0, false
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Message(childComplexity, args["id"].(int64)), true
 | |
| 
 | |
| 	case "Query.Messages":
 | |
| 		if e.complexity.Query.Messages == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Messages(childComplexity), true
 | |
| 
 | |
| 	case "Query.Service":
 | |
| 		if e.complexity.Query.Service == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		args, err := ec.field_Query_service_args(context.TODO(), rawArgs)
 | |
| 		if err != nil {
 | |
| 			return 0, false
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Service(childComplexity, args["id"].(int64)), true
 | |
| 
 | |
| 	case "Query.Services":
 | |
| 		if e.complexity.Query.Services == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Services(childComplexity), true
 | |
| 
 | |
| 	case "Query.User":
 | |
| 		if e.complexity.Query.User == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		args, err := ec.field_Query_user_args(context.TODO(), rawArgs)
 | |
| 		if err != nil {
 | |
| 			return 0, false
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.User(childComplexity, args["id"].(int64)), true
 | |
| 
 | |
| 	case "Query.Users":
 | |
| 		if e.complexity.Query.Users == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Query.Users(childComplexity), true
 | |
| 
 | |
| 	case "Service.AllowNotifications":
 | |
| 		if e.complexity.Service.AllowNotifications == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.AllowNotifications(childComplexity), true
 | |
| 
 | |
| 	case "Service.AvgResponse":
 | |
| 		if e.complexity.Service.AvgResponse == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.AvgResponse(childComplexity), true
 | |
| 
 | |
| 	case "Service.CreatedAt":
 | |
| 		if e.complexity.Service.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "Service.Domain":
 | |
| 		if e.complexity.Service.Domain == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Domain(childComplexity), true
 | |
| 
 | |
| 	case "Service.Expected":
 | |
| 		if e.complexity.Service.Expected == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Expected(childComplexity), true
 | |
| 
 | |
| 	case "Service.ExpectedStatus":
 | |
| 		if e.complexity.Service.ExpectedStatus == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.ExpectedStatus(childComplexity), true
 | |
| 
 | |
| 	case "Service.Failures":
 | |
| 		if e.complexity.Service.Failures == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Failures(childComplexity), true
 | |
| 
 | |
| 	case "Service.Group":
 | |
| 		if e.complexity.Service.Group == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Group(childComplexity), true
 | |
| 
 | |
| 	case "Service.Headers":
 | |
| 		if e.complexity.Service.Headers == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Headers(childComplexity), true
 | |
| 
 | |
| 	case "Service.Id":
 | |
| 		if e.complexity.Service.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Id(childComplexity), true
 | |
| 
 | |
| 	case "Service.Interval":
 | |
| 		if e.complexity.Service.Interval == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Interval(childComplexity), true
 | |
| 
 | |
| 	case "Service.LastOnline":
 | |
| 		if e.complexity.Service.LastOnline == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.LastOnline(childComplexity), true
 | |
| 
 | |
| 	case "Service.LastStatusCode":
 | |
| 		if e.complexity.Service.LastStatusCode == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.LastStatusCode(childComplexity), true
 | |
| 
 | |
| 	case "Service.Latency":
 | |
| 		if e.complexity.Service.Latency == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Latency(childComplexity), true
 | |
| 
 | |
| 	case "Service.Method":
 | |
| 		if e.complexity.Service.Method == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Method(childComplexity), true
 | |
| 
 | |
| 	case "Service.Name":
 | |
| 		if e.complexity.Service.Name == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Name(childComplexity), true
 | |
| 
 | |
| 	case "Service.Online":
 | |
| 		if e.complexity.Service.Online == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Online(childComplexity), true
 | |
| 
 | |
| 	case "Service.Online24Hours":
 | |
| 		if e.complexity.Service.Online24Hours == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Online24Hours(childComplexity), true
 | |
| 
 | |
| 	case "Service.Order":
 | |
| 		if e.complexity.Service.Order == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Order(childComplexity), true
 | |
| 
 | |
| 	case "Service.Permalink":
 | |
| 		if e.complexity.Service.Permalink == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Permalink(childComplexity), true
 | |
| 
 | |
| 	case "Service.PingTime":
 | |
| 		if e.complexity.Service.PingTime == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.PingTime(childComplexity), true
 | |
| 
 | |
| 	case "Service.Port":
 | |
| 		if e.complexity.Service.Port == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Port(childComplexity), true
 | |
| 
 | |
| 	case "Service.PostData":
 | |
| 		if e.complexity.Service.PostData == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.PostData(childComplexity), true
 | |
| 
 | |
| 	case "Service.Public":
 | |
| 		if e.complexity.Service.Public == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Public(childComplexity), true
 | |
| 
 | |
| 	case "Service.Timeout":
 | |
| 		if e.complexity.Service.Timeout == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Timeout(childComplexity), true
 | |
| 
 | |
| 	case "Service.Type":
 | |
| 		if e.complexity.Service.Type == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.Type(childComplexity), true
 | |
| 
 | |
| 	case "Service.UpdatedAt":
 | |
| 		if e.complexity.Service.UpdatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.Service.UpdatedAt(childComplexity), true
 | |
| 
 | |
| 	case "User.Admin":
 | |
| 		if e.complexity.User.Admin == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.Admin(childComplexity), true
 | |
| 
 | |
| 	case "User.ApiKey":
 | |
| 		if e.complexity.User.ApiKey == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.ApiKey(childComplexity), true
 | |
| 
 | |
| 	case "User.ApiSecret":
 | |
| 		if e.complexity.User.ApiSecret == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.ApiSecret(childComplexity), true
 | |
| 
 | |
| 	case "User.CreatedAt":
 | |
| 		if e.complexity.User.CreatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.CreatedAt(childComplexity), true
 | |
| 
 | |
| 	case "User.Email":
 | |
| 		if e.complexity.User.Email == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.Email(childComplexity), true
 | |
| 
 | |
| 	case "User.Id":
 | |
| 		if e.complexity.User.Id == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.Id(childComplexity), true
 | |
| 
 | |
| 	case "User.UpdatedAt":
 | |
| 		if e.complexity.User.UpdatedAt == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.UpdatedAt(childComplexity), true
 | |
| 
 | |
| 	case "User.Username":
 | |
| 		if e.complexity.User.Username == nil {
 | |
| 			break
 | |
| 		}
 | |
| 
 | |
| 		return e.complexity.User.Username(childComplexity), true
 | |
| 
 | |
| 	}
 | |
| 	return 0, false
 | |
| }
 | |
| 
 | |
| func (e *executableSchema) Query(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {
 | |
| 	ec := executionContext{graphql.GetRequestContext(ctx), e}
 | |
| 
 | |
| 	buf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte {
 | |
| 		data := ec._Query(ctx, op.SelectionSet)
 | |
| 		var buf bytes.Buffer
 | |
| 		data.MarshalGQL(&buf)
 | |
| 		return buf.Bytes()
 | |
| 	})
 | |
| 
 | |
| 	return &graphql.Response{
 | |
| 		Data:       buf,
 | |
| 		Errors:     ec.Errors,
 | |
| 		Extensions: ec.Extensions,
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {
 | |
| 	return graphql.ErrorResponse(ctx, "mutations are not supported")
 | |
| }
 | |
| 
 | |
| func (e *executableSchema) Subscription(ctx context.Context, op *ast.OperationDefinition) func() *graphql.Response {
 | |
| 	return graphql.OneShot(graphql.ErrorResponse(ctx, "subscriptions are not supported"))
 | |
| }
 | |
| 
 | |
| type executionContext struct {
 | |
| 	*graphql.RequestContext
 | |
| 	*executableSchema
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) FieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) (ret interface{}) {
 | |
| 	defer func() {
 | |
| 		if r := recover(); r != nil {
 | |
| 			ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 			ret = nil
 | |
| 		}
 | |
| 	}()
 | |
| 	res, err := ec.ResolverMiddleware(ctx, next)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return nil
 | |
| 	}
 | |
| 	return res
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
 | |
| 	if ec.DisableIntrospection {
 | |
| 		return nil, errors.New("introspection disabled")
 | |
| 	}
 | |
| 	return introspection.WrapSchema(parsedSchema), nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
 | |
| 	if ec.DisableIntrospection {
 | |
| 		return nil, errors.New("introspection disabled")
 | |
| 	}
 | |
| 	return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
 | |
| }
 | |
| 
 | |
| var parsedSchema = gqlparser.MustLoadSchema(
 | |
| 	&ast.Source{Name: "schema.graphql", Input: `schema {
 | |
|   query: Query
 | |
| }
 | |
| 
 | |
| type Query {
 | |
|   core: Core
 | |
|   service(id: ID!): Service
 | |
|   services: [Service]!
 | |
|   group(id: ID!): Group
 | |
|   groups: [Group]!
 | |
|   user(id: ID!): User
 | |
|   users: [User]!
 | |
|   checkin(id: ID!): Checkin
 | |
|   checkins: [Checkin]!
 | |
|   message(id: ID!): Message
 | |
|   messages: [Message]!
 | |
| }
 | |
| 
 | |
| type Core {
 | |
|   name: String!
 | |
|   description: String!
 | |
|   footer: String!
 | |
|   domain: String!
 | |
|   version: String!
 | |
|   timezone: String!
 | |
|   using_cdn: Boolean!
 | |
|   started_on: Time!
 | |
|   created_at: Time!
 | |
|   updated_at: Time!
 | |
| }
 | |
| 
 | |
| type Service {
 | |
|   id: ID!
 | |
|   name: String!
 | |
|   domain: String!
 | |
|   expected: String!
 | |
|   expected_status: Int!
 | |
|   interval: Int!
 | |
|   type: String!
 | |
|   method: String!
 | |
|   post_data: String!
 | |
|   port: Int!
 | |
|   timeout: Int!
 | |
|   order_id: Int!
 | |
|   allow_notifications: Boolean!
 | |
|   public: Boolean!
 | |
|   group: Group!
 | |
|   headers: String!
 | |
|   permalink: String!
 | |
|   online: Boolean!
 | |
|   latency: Float!
 | |
|   ping_time: Float!
 | |
|   online_24_hours: Float!
 | |
|   avg_response: String!
 | |
|   status_code: Int!
 | |
|   last_success: Time!
 | |
|   failures: [Failure]
 | |
|   created_at: Time!
 | |
|   updated_at: Time!
 | |
| }
 | |
| 
 | |
| type Checkin {
 | |
|   id: ID!
 | |
|   service: Service!
 | |
|   name: String!
 | |
|   interval: Int!
 | |
|   grace: Int!
 | |
|   api_key: String!
 | |
|   failing: Boolean!
 | |
|   last_hit: Time!
 | |
|   failures: [Failure]
 | |
|   hits: [CheckinHit]
 | |
|   created_at: Time!
 | |
|   updated_at: Time!
 | |
| }
 | |
| 
 | |
| type CheckinHit {
 | |
|   id: ID!
 | |
|   from: String!
 | |
|   created_at: Time!
 | |
| }
 | |
| 
 | |
| type Group {
 | |
|   id: ID!
 | |
|   name: String!
 | |
|   public: Boolean!
 | |
|   order_id: Int!
 | |
|   created_at: Time!
 | |
|   updated_at: Time!
 | |
| }
 | |
| 
 | |
| type User {
 | |
|   id: ID!
 | |
|   username: String!
 | |
|   email: String!
 | |
|   api_key: String!
 | |
|   api_secret: String!
 | |
|   admin: Boolean!
 | |
|   created_at: Time!
 | |
|   updated_at: Time!
 | |
| }
 | |
| 
 | |
| type Failure {
 | |
|   id: ID!
 | |
|   issue: String!
 | |
|   method: String!
 | |
|   method_id: Int!
 | |
|   error_code: Int!
 | |
|   ping: Float!
 | |
|   created_at: Time!
 | |
| }
 | |
| 
 | |
| type Message {
 | |
|   id: ID!
 | |
|   title: String!
 | |
|   description: String!
 | |
|   start_on: Time!
 | |
|   end_on: Time!
 | |
|   notify_users: Boolean!
 | |
|   notify_method: Boolean!
 | |
|   notify_before: Int!
 | |
|   notify_before_scale: String!
 | |
|   created_at: Time!
 | |
|   updated_at: Time!
 | |
| }
 | |
| 
 | |
| scalar Time`},
 | |
| )
 | |
| 
 | |
| // endregion ************************** generated!.gotpl **************************
 | |
| 
 | |
| // region    ***************************** args.gotpl *****************************
 | |
| 
 | |
| func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 string
 | |
| 	if tmp, ok := rawArgs["name"]; ok {
 | |
| 		arg0, err = ec.unmarshalNString2string(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["name"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field_Query_checkin_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 int64
 | |
| 	if tmp, ok := rawArgs["id"]; ok {
 | |
| 		arg0, err = ec.unmarshalNID2int64(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["id"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 int64
 | |
| 	if tmp, ok := rawArgs["id"]; ok {
 | |
| 		arg0, err = ec.unmarshalNID2int64(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["id"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field_Query_message_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 int64
 | |
| 	if tmp, ok := rawArgs["id"]; ok {
 | |
| 		arg0, err = ec.unmarshalNID2int64(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["id"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field_Query_service_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 int64
 | |
| 	if tmp, ok := rawArgs["id"]; ok {
 | |
| 		arg0, err = ec.unmarshalNID2int64(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["id"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 int64
 | |
| 	if tmp, ok := rawArgs["id"]; ok {
 | |
| 		arg0, err = ec.unmarshalNID2int64(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["id"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 bool
 | |
| 	if tmp, ok := rawArgs["includeDeprecated"]; ok {
 | |
| 		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["includeDeprecated"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
 | |
| 	var err error
 | |
| 	args := map[string]interface{}{}
 | |
| 	var arg0 bool
 | |
| 	if tmp, ok := rawArgs["includeDeprecated"]; ok {
 | |
| 		arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	args["includeDeprecated"] = arg0
 | |
| 	return args, nil
 | |
| }
 | |
| 
 | |
| // endregion ***************************** args.gotpl *****************************
 | |
| 
 | |
| // region    **************************** field.gotpl *****************************
 | |
| 
 | |
| func (ec *executionContext) _Checkin_id(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_service(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Checkin().Service(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Service)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNService2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_name(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_interval(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Interval, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_grace(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.GracePeriod, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_api_key(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.ApiKey, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_failing(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Failing, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_last_hit(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.LastHit, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_failures(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Checkin().Failures(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.Failure)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOFailure2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐFailure(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_hits(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Hits, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.CheckinHit)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOCheckinHit2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckinHit(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_created_at(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Checkin_updated_at(ctx context.Context, field graphql.CollectedField, obj *types.Checkin) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Checkin",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.UpdatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _CheckinHit_id(ctx context.Context, field graphql.CollectedField, obj *types.CheckinHit) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "CheckinHit",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _CheckinHit_from(ctx context.Context, field graphql.CollectedField, obj *types.CheckinHit) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "CheckinHit",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.From, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _CheckinHit_created_at(ctx context.Context, field graphql.CollectedField, obj *types.CheckinHit) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "CheckinHit",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_name(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_description(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_footer(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Core().Footer(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_domain(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Domain, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_version(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Version, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_timezone(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Core().Timezone(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_using_cdn(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Core().UsingCdn(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_started_on(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Started, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_created_at(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Core_updated_at(ctx context.Context, field graphql.CollectedField, obj *types.Core) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Core",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.UpdatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_id(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_issue(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Issue, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_method(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Method, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_method_id(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.MethodId, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_error_code(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.ErrorCode, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_ping(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.PingTime, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(float64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNFloat2float64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Failure_created_at(ctx context.Context, field graphql.CollectedField, obj *types.Failure) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Failure",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Group_id(ctx context.Context, field graphql.CollectedField, obj *types.Group) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Group",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Group_name(ctx context.Context, field graphql.CollectedField, obj *types.Group) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Group",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Group_public(ctx context.Context, field graphql.CollectedField, obj *types.Group) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Group",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Group().Public(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Group_order_id(ctx context.Context, field graphql.CollectedField, obj *types.Group) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Group",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Order, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Group_created_at(ctx context.Context, field graphql.CollectedField, obj *types.Group) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Group",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Group_updated_at(ctx context.Context, field graphql.CollectedField, obj *types.Group) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Group",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.UpdatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_id(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_title(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Title, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_description(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_start_on(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.StartOn, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_end_on(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.EndOn, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_notify_users(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Message().NotifyUsers(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_notify_method(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Message().NotifyMethod(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_notify_before(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Message().NotifyBefore(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_notify_before_scale(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.NotifyBeforeScale, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_created_at(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Message_updated_at(ctx context.Context, field graphql.CollectedField, obj *types.Message) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Message",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.UpdatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_core(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Core(rctx)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Core)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOCore2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCore(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_service(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field_Query_service_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Service(rctx, args["id"].(int64))
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Service)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOService2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_services(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Services(rctx)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.Service)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNService2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field_Query_group_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Group(rctx, args["id"].(int64))
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Group)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOGroup2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Groups(rctx)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.Group)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNGroup2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field_Query_user_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().User(rctx, args["id"].(int64))
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.User)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOUser2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐUser(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Users(rctx)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.User)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNUser2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐUser(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_checkin(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field_Query_checkin_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Checkin(rctx, args["id"].(int64))
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Checkin)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOCheckin2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckin(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_checkins(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Checkins(rctx)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.Checkin)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNCheckin2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckin(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_message(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field_Query_message_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Message(rctx, args["id"].(int64))
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Message)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOMessage2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐMessage(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query_messages(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Query().Messages(rctx)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.Message)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNMessage2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐMessage(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field_Query___type_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.introspectType(args["name"].(string))
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Query",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.introspectSchema()
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Schema)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_id(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_name(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_domain(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Domain, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_expected(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Expected(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_expected_status(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.ExpectedStatus, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_interval(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Interval, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_type(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Type, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_method(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Method, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_post_data(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().PostData(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_port(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Port, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_timeout(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Timeout, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_order_id(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Order, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_allow_notifications(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().AllowNotifications(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_public(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Public(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_group(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Group(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*types.Group)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNGroup2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_headers(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Headers(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_permalink(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Permalink(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_online(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Online, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_latency(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Latency, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(float64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNFloat2float64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_ping_time(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.PingTime, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(float64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNFloat2float64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_online_24_hours(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Online24Hours(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(float64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNFloat2float64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_avg_response(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.AvgResponse, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_status_code(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.LastStatusCode, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNInt2int(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_last_success(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.LastOnline, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_failures(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.Service().Failures(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]*types.Failure)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOFailure2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐFailure(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_created_at(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _Service_updated_at(ctx context.Context, field graphql.CollectedField, obj *types.Service) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "Service",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.UpdatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Id, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(int64)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNID2int64(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_username(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Username, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Email, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_api_key(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.ApiKey, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_api_secret(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.ApiSecret, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_admin(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return ec.resolvers.User().Admin(rctx, obj)
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_created_at(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.CreatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) _User_updated_at(ctx context.Context, field graphql.CollectedField, obj *types.User) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "User",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.UpdatedAt, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(time.Time)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Directive",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Directive",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Directive",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Locations, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__DirectiveLocation2ᚕstring(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Directive",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Args, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.InputValue)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__EnumValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__EnumValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__EnumValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.IsDeprecated(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__EnumValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.DeprecationReason(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Field",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Field",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Field",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Args, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.InputValue)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Field",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Type, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Field",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.IsDeprecated(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(bool)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNBoolean2bool(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Field",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.DeprecationReason(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__InputValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalNString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__InputValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__InputValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Type, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__InputValue",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: false,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.DefaultValue, nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Schema",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Types(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Schema",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.QueryType(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Schema",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.MutationType(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Schema",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.SubscriptionType(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Schema",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Directives(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.Directive)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Kind(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		if !ec.HasError(rctx) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Name(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Description(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(string)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalOString2string(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field___Type_fields_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Fields(args["includeDeprecated"].(bool)), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.Field)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.Interfaces(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.PossibleTypes(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	rawArgs := field.ArgumentMap(ec.Variables)
 | |
| 	args, err := ec.field___Type_enumValues_args(ctx, rawArgs)
 | |
| 	if err != nil {
 | |
| 		ec.Error(ctx, err)
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	rctx.Args = args
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.EnumValues(args["includeDeprecated"].(bool)), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.EnumValue)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.InputFields(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.([]introspection.InputValue)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler {
 | |
| 	ctx = ec.Tracer.StartFieldExecution(ctx, field)
 | |
| 	defer func() { ec.Tracer.EndFieldExecution(ctx) }()
 | |
| 	rctx := &graphql.ResolverContext{
 | |
| 		Object:   "__Type",
 | |
| 		Field:    field,
 | |
| 		Args:     nil,
 | |
| 		IsMethod: true,
 | |
| 	}
 | |
| 	ctx = graphql.WithResolverContext(ctx, rctx)
 | |
| 	ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
 | |
| 	resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
 | |
| 		ctx = rctx // use context from middleware stack in children
 | |
| 		return obj.OfType(), nil
 | |
| 	})
 | |
| 	if resTmp == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	res := resTmp.(*introspection.Type)
 | |
| 	rctx.Result = res
 | |
| 	ctx = ec.Tracer.StartFieldChildExecution(ctx)
 | |
| 	return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
 | |
| }
 | |
| 
 | |
| // endregion **************************** field.gotpl *****************************
 | |
| 
 | |
| // region    **************************** input.gotpl *****************************
 | |
| 
 | |
| // endregion **************************** input.gotpl *****************************
 | |
| 
 | |
| // region    ************************** interface.gotpl ***************************
 | |
| 
 | |
| // endregion ************************** interface.gotpl ***************************
 | |
| 
 | |
| // region    **************************** object.gotpl ****************************
 | |
| 
 | |
| var checkinImplementors = []string{"Checkin"}
 | |
| 
 | |
| func (ec *executionContext) _Checkin(ctx context.Context, sel ast.SelectionSet, obj *types.Checkin) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, checkinImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Checkin")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._Checkin_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "service":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Checkin_service(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec._Checkin_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "interval":
 | |
| 			out.Values[i] = ec._Checkin_interval(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "grace":
 | |
| 			out.Values[i] = ec._Checkin_grace(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "api_key":
 | |
| 			out.Values[i] = ec._Checkin_api_key(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "failing":
 | |
| 			out.Values[i] = ec._Checkin_failing(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "last_hit":
 | |
| 			out.Values[i] = ec._Checkin_last_hit(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "failures":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Checkin_failures(ctx, field, obj)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "hits":
 | |
| 			out.Values[i] = ec._Checkin_hits(ctx, field, obj)
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._Checkin_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "updated_at":
 | |
| 			out.Values[i] = ec._Checkin_updated_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var checkinHitImplementors = []string{"CheckinHit"}
 | |
| 
 | |
| func (ec *executionContext) _CheckinHit(ctx context.Context, sel ast.SelectionSet, obj *types.CheckinHit) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, checkinHitImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("CheckinHit")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._CheckinHit_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "from":
 | |
| 			out.Values[i] = ec._CheckinHit_from(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._CheckinHit_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var coreImplementors = []string{"Core"}
 | |
| 
 | |
| func (ec *executionContext) _Core(ctx context.Context, sel ast.SelectionSet, obj *types.Core) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, coreImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Core")
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec._Core_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec._Core_description(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "footer":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Core_footer(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "domain":
 | |
| 			out.Values[i] = ec._Core_domain(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "version":
 | |
| 			out.Values[i] = ec._Core_version(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "timezone":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Core_timezone(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "using_cdn":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Core_using_cdn(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "started_on":
 | |
| 			out.Values[i] = ec._Core_started_on(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._Core_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "updated_at":
 | |
| 			out.Values[i] = ec._Core_updated_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var failureImplementors = []string{"Failure"}
 | |
| 
 | |
| func (ec *executionContext) _Failure(ctx context.Context, sel ast.SelectionSet, obj *types.Failure) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, failureImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Failure")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._Failure_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "issue":
 | |
| 			out.Values[i] = ec._Failure_issue(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "method":
 | |
| 			out.Values[i] = ec._Failure_method(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "method_id":
 | |
| 			out.Values[i] = ec._Failure_method_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "error_code":
 | |
| 			out.Values[i] = ec._Failure_error_code(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "ping":
 | |
| 			out.Values[i] = ec._Failure_ping(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._Failure_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var groupImplementors = []string{"Group"}
 | |
| 
 | |
| func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, obj *types.Group) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, groupImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Group")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._Group_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec._Group_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "public":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Group_public(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "order_id":
 | |
| 			out.Values[i] = ec._Group_order_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._Group_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "updated_at":
 | |
| 			out.Values[i] = ec._Group_updated_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var messageImplementors = []string{"Message"}
 | |
| 
 | |
| func (ec *executionContext) _Message(ctx context.Context, sel ast.SelectionSet, obj *types.Message) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, messageImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Message")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._Message_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "title":
 | |
| 			out.Values[i] = ec._Message_title(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec._Message_description(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "start_on":
 | |
| 			out.Values[i] = ec._Message_start_on(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "end_on":
 | |
| 			out.Values[i] = ec._Message_end_on(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "notify_users":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Message_notify_users(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "notify_method":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Message_notify_method(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "notify_before":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Message_notify_before(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "notify_before_scale":
 | |
| 			out.Values[i] = ec._Message_notify_before_scale(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._Message_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "updated_at":
 | |
| 			out.Values[i] = ec._Message_updated_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var queryImplementors = []string{"Query"}
 | |
| 
 | |
| func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, queryImplementors)
 | |
| 
 | |
| 	ctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{
 | |
| 		Object: "Query",
 | |
| 	})
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Query")
 | |
| 		case "core":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_core(ctx, field)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "service":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_service(ctx, field)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "services":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_services(ctx, field)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "group":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_group(ctx, field)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "groups":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_groups(ctx, field)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "user":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_user(ctx, field)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "users":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_users(ctx, field)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "checkin":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_checkin(ctx, field)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "checkins":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_checkins(ctx, field)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "message":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_message(ctx, field)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "messages":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Query_messages(ctx, field)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "__type":
 | |
| 			out.Values[i] = ec._Query___type(ctx, field)
 | |
| 		case "__schema":
 | |
| 			out.Values[i] = ec._Query___schema(ctx, field)
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var serviceImplementors = []string{"Service"}
 | |
| 
 | |
| func (ec *executionContext) _Service(ctx context.Context, sel ast.SelectionSet, obj *types.Service) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, serviceImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("Service")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._Service_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec._Service_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "domain":
 | |
| 			out.Values[i] = ec._Service_domain(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "expected":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_expected(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "expected_status":
 | |
| 			out.Values[i] = ec._Service_expected_status(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "interval":
 | |
| 			out.Values[i] = ec._Service_interval(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "type":
 | |
| 			out.Values[i] = ec._Service_type(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "method":
 | |
| 			out.Values[i] = ec._Service_method(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "post_data":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_post_data(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "port":
 | |
| 			out.Values[i] = ec._Service_port(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "timeout":
 | |
| 			out.Values[i] = ec._Service_timeout(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "order_id":
 | |
| 			out.Values[i] = ec._Service_order_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "allow_notifications":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_allow_notifications(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "public":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_public(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "group":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_group(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "headers":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_headers(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "permalink":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_permalink(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "online":
 | |
| 			out.Values[i] = ec._Service_online(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "latency":
 | |
| 			out.Values[i] = ec._Service_latency(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "ping_time":
 | |
| 			out.Values[i] = ec._Service_ping_time(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "online_24_hours":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_online_24_hours(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "avg_response":
 | |
| 			out.Values[i] = ec._Service_avg_response(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "status_code":
 | |
| 			out.Values[i] = ec._Service_status_code(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "last_success":
 | |
| 			out.Values[i] = ec._Service_last_success(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "failures":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._Service_failures(ctx, field, obj)
 | |
| 				return res
 | |
| 			})
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._Service_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "updated_at":
 | |
| 			out.Values[i] = ec._Service_updated_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var userImplementors = []string{"User"}
 | |
| 
 | |
| func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj *types.User) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, userImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("User")
 | |
| 		case "id":
 | |
| 			out.Values[i] = ec._User_id(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "username":
 | |
| 			out.Values[i] = ec._User_username(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "email":
 | |
| 			out.Values[i] = ec._User_email(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "api_key":
 | |
| 			out.Values[i] = ec._User_api_key(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "api_secret":
 | |
| 			out.Values[i] = ec._User_api_secret(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "admin":
 | |
| 			field := field
 | |
| 			out.Concurrently(i, func() (res graphql.Marshaler) {
 | |
| 				defer func() {
 | |
| 					if r := recover(); r != nil {
 | |
| 						ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					}
 | |
| 				}()
 | |
| 				res = ec._User_admin(ctx, field, obj)
 | |
| 				if res == graphql.Null {
 | |
| 					invalid = true
 | |
| 				}
 | |
| 				return res
 | |
| 			})
 | |
| 		case "created_at":
 | |
| 			out.Values[i] = ec._User_created_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "updated_at":
 | |
| 			out.Values[i] = ec._User_updated_at(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var __DirectiveImplementors = []string{"__Directive"}
 | |
| 
 | |
| func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, __DirectiveImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("__Directive")
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec.___Directive_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec.___Directive_description(ctx, field, obj)
 | |
| 		case "locations":
 | |
| 			out.Values[i] = ec.___Directive_locations(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "args":
 | |
| 			out.Values[i] = ec.___Directive_args(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var __EnumValueImplementors = []string{"__EnumValue"}
 | |
| 
 | |
| func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, __EnumValueImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("__EnumValue")
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
 | |
| 		case "isDeprecated":
 | |
| 			out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "deprecationReason":
 | |
| 			out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var __FieldImplementors = []string{"__Field"}
 | |
| 
 | |
| func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, __FieldImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("__Field")
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec.___Field_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec.___Field_description(ctx, field, obj)
 | |
| 		case "args":
 | |
| 			out.Values[i] = ec.___Field_args(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "type":
 | |
| 			out.Values[i] = ec.___Field_type(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "isDeprecated":
 | |
| 			out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "deprecationReason":
 | |
| 			out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var __InputValueImplementors = []string{"__InputValue"}
 | |
| 
 | |
| func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, __InputValueImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("__InputValue")
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec.___InputValue_name(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec.___InputValue_description(ctx, field, obj)
 | |
| 		case "type":
 | |
| 			out.Values[i] = ec.___InputValue_type(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "defaultValue":
 | |
| 			out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var __SchemaImplementors = []string{"__Schema"}
 | |
| 
 | |
| func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, __SchemaImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("__Schema")
 | |
| 		case "types":
 | |
| 			out.Values[i] = ec.___Schema_types(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "queryType":
 | |
| 			out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "mutationType":
 | |
| 			out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
 | |
| 		case "subscriptionType":
 | |
| 			out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
 | |
| 		case "directives":
 | |
| 			out.Values[i] = ec.___Schema_directives(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| var __TypeImplementors = []string{"__Type"}
 | |
| 
 | |
| func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
 | |
| 	fields := graphql.CollectFields(ctx, sel, __TypeImplementors)
 | |
| 
 | |
| 	out := graphql.NewFieldSet(fields)
 | |
| 	invalid := false
 | |
| 	for i, field := range fields {
 | |
| 		switch field.Name {
 | |
| 		case "__typename":
 | |
| 			out.Values[i] = graphql.MarshalString("__Type")
 | |
| 		case "kind":
 | |
| 			out.Values[i] = ec.___Type_kind(ctx, field, obj)
 | |
| 			if out.Values[i] == graphql.Null {
 | |
| 				invalid = true
 | |
| 			}
 | |
| 		case "name":
 | |
| 			out.Values[i] = ec.___Type_name(ctx, field, obj)
 | |
| 		case "description":
 | |
| 			out.Values[i] = ec.___Type_description(ctx, field, obj)
 | |
| 		case "fields":
 | |
| 			out.Values[i] = ec.___Type_fields(ctx, field, obj)
 | |
| 		case "interfaces":
 | |
| 			out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
 | |
| 		case "possibleTypes":
 | |
| 			out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
 | |
| 		case "enumValues":
 | |
| 			out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
 | |
| 		case "inputFields":
 | |
| 			out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
 | |
| 		case "ofType":
 | |
| 			out.Values[i] = ec.___Type_ofType(ctx, field, obj)
 | |
| 		default:
 | |
| 			panic("unknown field " + strconv.Quote(field.Name))
 | |
| 		}
 | |
| 	}
 | |
| 	out.Dispatch()
 | |
| 	if invalid {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return out
 | |
| }
 | |
| 
 | |
| // endregion **************************** object.gotpl ****************************
 | |
| 
 | |
| // region    ***************************** type.gotpl *****************************
 | |
| 
 | |
| func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
 | |
| 	return graphql.UnmarshalBoolean(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
 | |
| 	return graphql.MarshalBoolean(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNCheckin2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckin(ctx context.Context, sel ast.SelectionSet, v []*types.Checkin) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOCheckin2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckin(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) {
 | |
| 	return graphql.UnmarshalFloat(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler {
 | |
| 	return graphql.MarshalFloat(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNGroup2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx context.Context, sel ast.SelectionSet, v types.Group) graphql.Marshaler {
 | |
| 	return ec._Group(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNGroup2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx context.Context, sel ast.SelectionSet, v []*types.Group) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOGroup2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNGroup2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx context.Context, sel ast.SelectionSet, v *types.Group) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		if !ec.HasError(graphql.GetResolverContext(ctx)) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Group(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalNID2int64(ctx context.Context, v interface{}) (int64, error) {
 | |
| 	return graphql.UnmarshalInt64(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNID2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
 | |
| 	return graphql.MarshalInt64(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
 | |
| 	return graphql.UnmarshalInt(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
 | |
| 	return graphql.MarshalInt(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) {
 | |
| 	return graphql.UnmarshalInt64(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
 | |
| 	return graphql.MarshalInt64(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNMessage2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐMessage(ctx context.Context, sel ast.SelectionSet, v []*types.Message) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOMessage2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐMessage(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNService2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx context.Context, sel ast.SelectionSet, v types.Service) graphql.Marshaler {
 | |
| 	return ec._Service(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNService2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx context.Context, sel ast.SelectionSet, v []*types.Service) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOService2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNService2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx context.Context, sel ast.SelectionSet, v *types.Service) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		if !ec.HasError(graphql.GetResolverContext(ctx)) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Service(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
 | |
| 	return graphql.UnmarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
 | |
| 	return graphql.MarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
 | |
| 	return graphql.UnmarshalTime(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
 | |
| 	if v.IsZero() {
 | |
| 		if !ec.HasError(graphql.GetResolverContext(ctx)) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return graphql.MarshalTime(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalNUser2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐUser(ctx context.Context, sel ast.SelectionSet, v []*types.User) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOUser2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐUser(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
 | |
| 	return ec.___Directive(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
 | |
| 	return graphql.UnmarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
 | |
| 	return graphql.MarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstring(ctx context.Context, v interface{}) ([]string, error) {
 | |
| 	var vSlice []interface{}
 | |
| 	if v != nil {
 | |
| 		if tmp1, ok := v.([]interface{}); ok {
 | |
| 			vSlice = tmp1
 | |
| 		} else {
 | |
| 			vSlice = []interface{}{v}
 | |
| 		}
 | |
| 	}
 | |
| 	var err error
 | |
| 	res := make([]string, len(vSlice))
 | |
| 	for i := range vSlice {
 | |
| 		res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
 | |
| 		if err != nil {
 | |
| 			return nil, err
 | |
| 		}
 | |
| 	}
 | |
| 	return res, nil
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__DirectiveLocation2ᚕstring(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
 | |
| 	return ec.___EnumValue(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
 | |
| 	return ec.___Field(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
 | |
| 	return ec.___InputValue(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
 | |
| 	return ec.___Type(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		if !ec.HasError(graphql.GetResolverContext(ctx)) {
 | |
| 			ec.Errorf(ctx, "must not be null")
 | |
| 		}
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec.___Type(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
 | |
| 	return graphql.UnmarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
 | |
| 	return graphql.MarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
 | |
| 	return graphql.UnmarshalBoolean(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
 | |
| 	return graphql.MarshalBoolean(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
 | |
| 	if v == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	res, err := ec.unmarshalOBoolean2bool(ctx, v)
 | |
| 	return &res, err
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec.marshalOBoolean2bool(ctx, sel, *v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCheckin2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckin(ctx context.Context, sel ast.SelectionSet, v types.Checkin) graphql.Marshaler {
 | |
| 	return ec._Checkin(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCheckin2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckin(ctx context.Context, sel ast.SelectionSet, v *types.Checkin) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Checkin(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCheckinHit2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckinHit(ctx context.Context, sel ast.SelectionSet, v types.CheckinHit) graphql.Marshaler {
 | |
| 	return ec._CheckinHit(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCheckinHit2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckinHit(ctx context.Context, sel ast.SelectionSet, v []*types.CheckinHit) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOCheckinHit2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckinHit(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCheckinHit2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCheckinHit(ctx context.Context, sel ast.SelectionSet, v *types.CheckinHit) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._CheckinHit(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCore2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCore(ctx context.Context, sel ast.SelectionSet, v types.Core) graphql.Marshaler {
 | |
| 	return ec._Core(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOCore2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐCore(ctx context.Context, sel ast.SelectionSet, v *types.Core) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Core(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOFailure2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐFailure(ctx context.Context, sel ast.SelectionSet, v types.Failure) graphql.Marshaler {
 | |
| 	return ec._Failure(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOFailure2ᚕᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐFailure(ctx context.Context, sel ast.SelectionSet, v []*types.Failure) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalOFailure2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐFailure(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOFailure2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐFailure(ctx context.Context, sel ast.SelectionSet, v *types.Failure) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Failure(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOGroup2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx context.Context, sel ast.SelectionSet, v types.Group) graphql.Marshaler {
 | |
| 	return ec._Group(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOGroup2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐGroup(ctx context.Context, sel ast.SelectionSet, v *types.Group) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Group(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOMessage2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐMessage(ctx context.Context, sel ast.SelectionSet, v types.Message) graphql.Marshaler {
 | |
| 	return ec._Message(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOMessage2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐMessage(ctx context.Context, sel ast.SelectionSet, v *types.Message) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Message(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOService2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx context.Context, sel ast.SelectionSet, v types.Service) graphql.Marshaler {
 | |
| 	return ec._Service(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOService2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐService(ctx context.Context, sel ast.SelectionSet, v *types.Service) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._Service(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
 | |
| 	return graphql.UnmarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
 | |
| 	return graphql.MarshalString(v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
 | |
| 	if v == nil {
 | |
| 		return nil, nil
 | |
| 	}
 | |
| 	res, err := ec.unmarshalOString2string(ctx, v)
 | |
| 	return &res, err
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec.marshalOString2string(ctx, sel, *v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOUser2githubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐUser(ctx context.Context, sel ast.SelectionSet, v types.User) graphql.Marshaler {
 | |
| 	return ec._User(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalOUser2ᚖgithubᚗcomᚋhunterlongᚋstatpingᚋtypesᚐUser(ctx context.Context, sel ast.SelectionSet, v *types.User) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec._User(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler {
 | |
| 	return ec.___Schema(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec.___Schema(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
 | |
| 	return ec.___Type(ctx, sel, &v)
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	ret := make(graphql.Array, len(v))
 | |
| 	var wg sync.WaitGroup
 | |
| 	isLen1 := len(v) == 1
 | |
| 	if !isLen1 {
 | |
| 		wg.Add(len(v))
 | |
| 	}
 | |
| 	for i := range v {
 | |
| 		i := i
 | |
| 		rctx := &graphql.ResolverContext{
 | |
| 			Index:  &i,
 | |
| 			Result: &v[i],
 | |
| 		}
 | |
| 		ctx := graphql.WithResolverContext(ctx, rctx)
 | |
| 		f := func(i int) {
 | |
| 			defer func() {
 | |
| 				if r := recover(); r != nil {
 | |
| 					ec.Error(ctx, ec.Recover(ctx, r))
 | |
| 					ret = nil
 | |
| 				}
 | |
| 			}()
 | |
| 			if !isLen1 {
 | |
| 				defer wg.Done()
 | |
| 			}
 | |
| 			ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
 | |
| 		}
 | |
| 		if isLen1 {
 | |
| 			f(i)
 | |
| 		} else {
 | |
| 			go f(i)
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| 	wg.Wait()
 | |
| 	return ret
 | |
| }
 | |
| 
 | |
| func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
 | |
| 	if v == nil {
 | |
| 		return graphql.Null
 | |
| 	}
 | |
| 	return ec.___Type(ctx, sel, v)
 | |
| }
 | |
| 
 | |
| // endregion ***************************** type.gotpl *****************************
 |