generated

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2025 License: MIT Imports: 13 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 {
	Car struct {
		CarID         func(childComplexity int) int
		DryTireSets   func(childComplexity int) int
		FuelPct       func(childComplexity int) int
		ID            func(childComplexity int) int
		Name          func(childComplexity int) int
		NameShort     func(childComplexity int) int
		PowerAdjust   func(childComplexity int) int
		WeightPenalty func(childComplexity int) int
	}

	Driver struct {
		CarClass func(childComplexity int) int
		CarNum   func(childComplexity int) int
		Events   func(childComplexity int) int
		Name     func(childComplexity int) int
		Teams    func(childComplexity int) int
	}

	Event struct {
		Cars              func(childComplexity int) int
		Description       func(childComplexity int) int
		Drivers           func(childComplexity int) int
		Entries           func(childComplexity int) int
		EventDate         func(childComplexity int) int
		ID                func(childComplexity int) int
		IracingSessionId  func(childComplexity int) int
		Key               func(childComplexity int) int
		MultiClass        func(childComplexity int) int
		Name              func(childComplexity int) int
		NumCarClasses     func(childComplexity int) int
		NumCarTypes       func(childComplexity int) int
		RaceloggerVersion func(childComplexity int) int
		RecordDate        func(childComplexity int) int
		TeamRacing        func(childComplexity int) int
		Teams             func(childComplexity int) int
		Track             func(childComplexity int) int
	}

	EventDriver struct {
		AbbrevName      func(childComplexity int) int
		DriverID        func(childComplexity int) int
		ID              func(childComplexity int) int
		IRating         func(childComplexity int) int
		Initials        func(childComplexity int) int
		LicenseLevel    func(childComplexity int) int
		LicenseString   func(childComplexity int) int
		LicenseSubLevel func(childComplexity int) int
		Name            func(childComplexity int) int
	}

	EventEntry struct {
		Car       func(childComplexity int) int
		CarNum    func(childComplexity int) int
		CarNumRaw func(childComplexity int) int
		Drivers   func(childComplexity int) int
		ID        func(childComplexity int) int
		Team      func(childComplexity int) int
	}

	EventTeam struct {
		Drivers func(childComplexity int) int
		ID      func(childComplexity int) int
		Name    func(childComplexity int) int
		TeamID  func(childComplexity int) int
	}

	Query struct {
		AdvancedSearchEvent func(childComplexity int, arg string, limit *int, offset *int, sort []*model.EventSortArg) int
		EventEntry          func(childComplexity int, ids []int) int
		Events              func(childComplexity int, ids []int) int
		GetEvents           func(childComplexity int, limit *int, offset *int, sort []*model.EventSortArg) int
		GetTracks           func(childComplexity int, limit *int, offset *int, sort []*model.TrackSortArg) int
		SearchDriver        func(childComplexity int, arg string) int
		SearchTeam          func(childComplexity int, arg string) int
		SimpleSearchEvent   func(childComplexity int, arg string, limit *int, offset *int, sort []*model.EventSortArg) int
		Track               func(childComplexity int, id int) int
		Tracks              func(childComplexity int, ids []int) int
	}

	Team struct {
		CarClass func(childComplexity int) int
		CarNum   func(childComplexity int) int
		Drivers  func(childComplexity int) int
		Events   func(childComplexity int) int
		Name     func(childComplexity int) int
		Teams    func(childComplexity int) int
	}

	Track struct {
		ConfigName    func(childComplexity int) int
		Events        func(childComplexity int) int
		ID            func(childComplexity int) int
		Length        func(childComplexity int) int
		Name          func(childComplexity int) int
		NumSectors    func(childComplexity int) int
		PitLaneLength func(childComplexity int) int
		PitSpeed      func(childComplexity int) int
		ShortName     func(childComplexity int) int
	}

	User struct {
		ID   func(childComplexity int) int
		Name func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type DriverResolver

type DriverResolver interface {
	Teams(ctx context.Context, obj *model.Driver) ([]*model.Team, error)
	Events(ctx context.Context, obj *model.Driver) ([]*model.Event, error)
}

type EventEntryResolver added in v0.5.0

type EventEntryResolver interface {
	Car(ctx context.Context, obj *model.EventEntry) (*model.Car, error)

	Team(ctx context.Context, obj *model.EventEntry) (*model.EventTeam, error)
	Drivers(ctx context.Context, obj *model.EventEntry) ([]*model.EventDriver, error)
}

type EventResolver

type EventResolver interface {
	Track(ctx context.Context, obj *model.Event) (*model.Track, error)
	Teams(ctx context.Context, obj *model.Event) ([]*model.EventTeam, error)
	Drivers(ctx context.Context, obj *model.Event) ([]*model.EventDriver, error)
	Entries(ctx context.Context, obj *model.Event) ([]*model.EventEntry, error)
	Cars(ctx context.Context, obj *model.Event) ([]*model.Car, error)
}

type EventTeamResolver added in v0.5.0

type EventTeamResolver interface {
	Drivers(ctx context.Context, obj *model.EventTeam) ([]*model.EventDriver, error)
}

type QueryResolver

type QueryResolver interface {
	EventEntry(ctx context.Context, ids []int) ([]*model.EventEntry, error)
	GetEvents(ctx context.Context, limit *int, offset *int, sort []*model.EventSortArg) ([]*model.Event, error)
	GetTracks(ctx context.Context, limit *int, offset *int, sort []*model.TrackSortArg) ([]*model.Track, error)
	Track(ctx context.Context, id int) (*model.Track, error)
	Events(ctx context.Context, ids []int) ([]*model.Event, error)
	Tracks(ctx context.Context, ids []int) ([]*model.Track, error)
	SearchDriver(ctx context.Context, arg string) ([]*model.Driver, error)
	SearchTeam(ctx context.Context, arg string) ([]*model.Team, error)
	SimpleSearchEvent(ctx context.Context, arg string, limit *int, offset *int, sort []*model.EventSortArg) ([]*model.Event, error)
	AdvancedSearchEvent(ctx context.Context, arg string, limit *int, offset *int, sort []*model.EventSortArg) ([]*model.Event, error)
}

type ResolverRoot

type ResolverRoot interface {
	Driver() DriverResolver
	Event() EventResolver
	EventEntry() EventEntryResolver
	EventTeam() EventTeamResolver
	Query() QueryResolver
	Team() TeamResolver
	Track() TrackResolver
}

type TeamResolver

type TeamResolver interface {
	Drivers(ctx context.Context, obj *model.Team) ([]*model.Driver, error)

	Events(ctx context.Context, obj *model.Team) ([]*model.Event, error)
}

type TrackResolver

type TrackResolver interface {
	Events(ctx context.Context, obj *model.Track) ([]*model.Event, error)
}

Jump to

Keyboard shortcuts

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