generated

package
v0.0.0-...-542a7aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	Mutation struct {
		CreateSiteReport   func(childComplexity int, input model.NewSiteReport) int
		CreateSurflineSite func(childComplexity int, input model.NewSurflineSite) int
	}

	Query struct {
		GetSiteReport   func(childComplexity int, id string) int
		GetSurflineSite func(childComplexity int, id string) int
		SiteReports     func(childComplexity int) int
		SurflineSites   func(childComplexity int) int
	}

	SiteReport struct {
		AccuracyEstimate func(childComplexity int) int
		Email            func(childComplexity int) int
		SiteReportRating func(childComplexity int) int
		SurflineRating   func(childComplexity int) int
		SurflineSite     func(childComplexity int) int
		Timestamp        func(childComplexity int) int
	}

	SurflineSite struct {
		Name       func(childComplexity int) int
		SurflineID func(childComplexity int) int
		URL        func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	CreateSiteReport(ctx context.Context, input model.NewSiteReport) (*model.SiteReport, error)
	CreateSurflineSite(ctx context.Context, input model.NewSurflineSite) (*model.SurflineSite, error)
}

type QueryResolver

type QueryResolver interface {
	SiteReports(ctx context.Context) ([]*model.SiteReport, error)
	GetSiteReport(ctx context.Context, id string) (*model.SiteReport, error)
	SurflineSites(ctx context.Context) ([]*model.SurflineSite, error)
	GetSurflineSite(ctx context.Context, id string) (*model.SurflineSite, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
	SiteReport() SiteReportResolver
}

type SiteReportResolver

type SiteReportResolver interface {
	SurflineSite(ctx context.Context, obj *model.SiteReport) (*model.SurflineSite, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL