generated

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 11 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 AllianceResolver

type AllianceResolver interface {
	CreatorCorporation(ctx context.Context, obj *model.Alliance) (*model.Corporation, error)

	Creator(ctx context.Context, obj *model.Alliance) (*model.Character, error)

	ExecutorCorporation(ctx context.Context, obj *model.Alliance) (*model.Corporation, error)

	Faction(ctx context.Context, obj *model.Alliance) (*model.Faction, error)
}

type AncestryResolver

type AncestryResolver interface {
	Bloodline(ctx context.Context, obj *model.Ancestry) (*model.Bloodline, error)
}

type Asteroid_beltResolver

type Asteroid_beltResolver interface {
	System(ctx context.Context, obj *model.AsteroidBelt) (*model.System, error)
}

type CharacterResolver

type CharacterResolver interface {
	Alliance(ctx context.Context, obj *model.Character) (*model.Alliance, error)

	Ancestry(ctx context.Context, obj *model.Character) (*model.Ancestry, error)

	Bloodline(ctx context.Context, obj *model.Character) (*model.Bloodline, error)

	Corporation(ctx context.Context, obj *model.Character) (*model.Corporation, error)

	Faction(ctx context.Context, obj *model.Character) (*model.Faction, error)

	Race(ctx context.Context, obj *model.Character) (*model.Race, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	Alliance struct {
		Creator               func(childComplexity int) int
		CreatorCorporation    func(childComplexity int) int
		CreatorCorporationID  func(childComplexity int) int
		CreatorID             func(childComplexity int) int
		DateFounded           func(childComplexity int) int
		ExecutorCorporation   func(childComplexity int) int
		ExecutorCorporationID func(childComplexity int) int
		Faction               func(childComplexity int) int
		FactionID             func(childComplexity int) int
		Name                  func(childComplexity int) int
		Ticker                func(childComplexity int) int
	}

	Ancestry struct {
		Bloodline        func(childComplexity int) int
		BloodlineID      func(childComplexity int) int
		Description      func(childComplexity int) int
		ID               func(childComplexity int) int
		IconID           func(childComplexity int) int
		Name             func(childComplexity int) int
		ShortDescription func(childComplexity int) int
	}

	AsteroidBelt struct {
		Name     func(childComplexity int) int
		Position func(childComplexity int) int
		System   func(childComplexity int) int
		SystemID func(childComplexity int) int
	}

	Bloodline struct {
		BloodlineID   func(childComplexity int) int
		Charisma      func(childComplexity int) int
		Corporation   func(childComplexity int) int
		CorporationID func(childComplexity int) int
		Description   func(childComplexity int) int
		Intelligence  func(childComplexity int) int
		Memory        func(childComplexity int) int
		Name          func(childComplexity int) int
		Perception    func(childComplexity int) int
		Race          func(childComplexity int) int
		RaceID        func(childComplexity int) int
		ShipType      func(childComplexity int) int
		ShipTypeID    func(childComplexity int) int
		Willpower     func(childComplexity int) int
	}

	Category struct {
		CategoryGroups func(childComplexity int) int
		CategoryID     func(childComplexity int) int
		Name           func(childComplexity int) int
		Published      func(childComplexity int) int
	}

	Character struct {
		Alliance       func(childComplexity int) int
		AllianceID     func(childComplexity int) int
		Ancestry       func(childComplexity int) int
		AncestryID     func(childComplexity int) int
		Birthday       func(childComplexity int) int
		Bloodline      func(childComplexity int) int
		BloodlineID    func(childComplexity int) int
		Corporation    func(childComplexity int) int
		CorporationID  func(childComplexity int) int
		Description    func(childComplexity int) int
		Faction        func(childComplexity int) int
		FactionID      func(childComplexity int) int
		Gender         func(childComplexity int) int
		Name           func(childComplexity int) int
		Race           func(childComplexity int) int
		RaceID         func(childComplexity int) int
		SecurityStatus func(childComplexity int) int
		Title          func(childComplexity int) int
	}

	CharacterPortrait struct {
		Px128x128 func(childComplexity int) int
		Px256x256 func(childComplexity int) int
		Px512x512 func(childComplexity int) int
		Px64x64   func(childComplexity int) int
	}

	Constellation struct {
		ConstellationID func(childComplexity int) int
		Name            func(childComplexity int) int
		Position        func(childComplexity int) int
		Region          func(childComplexity int) int
		RegionID        func(childComplexity int) int
		SolarSystems    func(childComplexity int) int
		Systems         func(childComplexity int) int
	}

	Corporation struct {
		Alliance      func(childComplexity int) int
		AllianceID    func(childComplexity int) int
		Ceo           func(childComplexity int) int
		CeoID         func(childComplexity int) int
		Creator       func(childComplexity int) int
		CreatorID     func(childComplexity int) int
		DateFounded   func(childComplexity int) int
		Description   func(childComplexity int) int
		Faction       func(childComplexity int) int
		FactionID     func(childComplexity int) int
		HomeStation   func(childComplexity int) int
		HomeStationID func(childComplexity int) int
		MemberCount   func(childComplexity int) int
		Name          func(childComplexity int) int
		Shares        func(childComplexity int) int
		TaxRate       func(childComplexity int) int
		Ticker        func(childComplexity int) int
		URL           func(childComplexity int) int
		WarEligible   func(childComplexity int) int
	}

	CorporationHistory struct {
		CorporationID func(childComplexity int) int
		Employer      func(childComplexity int) int
		RecordID      func(childComplexity int) int
		StartDate     func(childComplexity int) int
	}

	DogmaAttribute struct {
		Attribute   func(childComplexity int) int
		AttributeID func(childComplexity int) int
		Value       func(childComplexity int) int
	}

	DogmaAttributeDetail struct {
		AttributeID  func(childComplexity int) int
		DefaultValue func(childComplexity int) int
		Description  func(childComplexity int) int
		DisplayName  func(childComplexity int) int
		HighIsGood   func(childComplexity int) int
		Icon         func(childComplexity int) int
		Name         func(childComplexity int) int
		Published    func(childComplexity int) int
		Stackable    func(childComplexity int) int
		Unit         func(childComplexity int) int
	}

	DogmaEffect struct {
		Effect    func(childComplexity int) int
		EffectID  func(childComplexity int) int
		IsDefault func(childComplexity int) int
	}

	DogmaEffectDetail struct {
		Description              func(childComplexity int) int
		DisallowAutoRepeat       func(childComplexity int) int
		DischargeAttribute       func(childComplexity int) int
		DischargeAttributeID     func(childComplexity int) int
		DisplayName              func(childComplexity int) int
		DurationAttribute        func(childComplexity int) int
		DurationAttributeID      func(childComplexity int) int
		EffectCategory           func(childComplexity int) int
		EffectID                 func(childComplexity int) int
		ElectronicChance         func(childComplexity int) int
		FalloffAttribute         func(childComplexity int) int
		FalloffAttributeID       func(childComplexity int) int
		Icon                     func(childComplexity int) int
		IsAssistance             func(childComplexity int) int
		IsOffensive              func(childComplexity int) int
		IsWarpSafe               func(childComplexity int) int
		Modifiers                func(childComplexity int) int
		Name                     func(childComplexity int) int
		PostExpression           func(childComplexity int) int
		PreExpression            func(childComplexity int) int
		Published                func(childComplexity int) int
		RangeAttribute           func(childComplexity int) int
		RangeAttributeID         func(childComplexity int) int
		RangeChange              func(childComplexity int) int
		TrackingSpeedAttribute   func(childComplexity int) int
		TrackingSpeedAttributeID func(childComplexity int) int
	}

	Faction struct {
		Corporation          func(childComplexity int) int
		CorporationID        func(childComplexity int) int
		Description          func(childComplexity int) int
		FactionID            func(childComplexity int) int
		IsUnique             func(childComplexity int) int
		MilitiaCorporation   func(childComplexity int) int
		MilitiaCorporationID func(childComplexity int) int
		Name                 func(childComplexity int) int
		SizeFactor           func(childComplexity int) int
		SolarSystem          func(childComplexity int) int
		SolarSystemID        func(childComplexity int) int
		StationCount         func(childComplexity int) int
		StationSystemCount   func(childComplexity int) int
	}

	Graphic struct {
		CollisionFile func(childComplexity int) int
		GraphicFile   func(childComplexity int) int
		GraphicID     func(childComplexity int) int
		IconFolder    func(childComplexity int) int
		SofDna        func(childComplexity int) int
		SofFationName func(childComplexity int) int
		SofHullName   func(childComplexity int) int
		SofRaceName   func(childComplexity int) int
	}

	Group struct {
		Category   func(childComplexity int) int
		CategoryID func(childComplexity int) int
		GroupID    func(childComplexity int) int
		ItemTypes  func(childComplexity int) int
		Name       func(childComplexity int) int
		Published  func(childComplexity int) int
		Types      func(childComplexity int) int
	}

	Icon struct {
		ID func(childComplexity int) int
	}

	ItemType struct {
		Capacity        func(childComplexity int) int
		Description     func(childComplexity int) int
		DogmaAttributes func(childComplexity int) int
		DogmaEffects    func(childComplexity int) int
		Graphic         func(childComplexity int) int
		GraphicID       func(childComplexity int) int
		Group           func(childComplexity int) int
		GroupID         func(childComplexity int) int
		IconID          func(childComplexity int) int
		MarketGroup     func(childComplexity int) int
		MarketGroupID   func(childComplexity int) int
		Mass            func(childComplexity int) int
		Name            func(childComplexity int) int
		PackagedVolume  func(childComplexity int) int
		PortionSize     func(childComplexity int) int
		Published       func(childComplexity int) int
		Radius          func(childComplexity int) int
		TypeID          func(childComplexity int) int
		Volume          func(childComplexity int) int
	}

	MarketGroup struct {
		Description   func(childComplexity int) int
		ID            func(childComplexity int) int
		Name          func(childComplexity int) int
		ParentGroup   func(childComplexity int) int
		ParentGroupID func(childComplexity int) int
		Types         func(childComplexity int) int
		TypesDetails  func(childComplexity int) int
	}

	Modifier struct {
		Domain               func(childComplexity int) int
		EffectID             func(childComplexity int) int
		Func                 func(childComplexity int) int
		ModifiedAttribute    func(childComplexity int) int
		ModifiedAttributeID  func(childComplexity int) int
		ModifyingAttribute   func(childComplexity int) int
		ModifyingAttributeID func(childComplexity int) int
		Operator             func(childComplexity int) int
	}

	Moon struct {
		MoonID   func(childComplexity int) int
		Name     func(childComplexity int) int
		Position func(childComplexity int) int
		System   func(childComplexity int) int
		SystemID func(childComplexity int) int
	}

	Order struct {
		Duration     func(childComplexity int) int
		IsBuyOrder   func(childComplexity int) int
		Issued       func(childComplexity int) int
		ItemType     func(childComplexity int) int
		Location     func(childComplexity int) int
		LocationID   func(childComplexity int) int
		MinVolume    func(childComplexity int) int
		OrderID      func(childComplexity int) int
		Price        func(childComplexity int) int
		Range        func(childComplexity int) int
		System       func(childComplexity int) int
		SystemID     func(childComplexity int) int
		TypeID       func(childComplexity int) int
		VolumeRemain func(childComplexity int) int
		VolumeTotal  func(childComplexity int) int
	}

	OrderHistory struct {
		Average    func(childComplexity int) int
		Date       func(childComplexity int) int
		Highest    func(childComplexity int) int
		Lowest     func(childComplexity int) int
		OrderCount func(childComplexity int) int
		Volume     func(childComplexity int) int
	}

	OrderWrapper struct {
		List   func(childComplexity int) int
		Xpages func(childComplexity int) int
	}

	Planet struct {
		ItemType func(childComplexity int) int
		Name     func(childComplexity int) int
		PlanetID func(childComplexity int) int
		Position func(childComplexity int) int
		System   func(childComplexity int) int
		SystemID func(childComplexity int) int
		TypeID   func(childComplexity int) int
	}

	Position struct {
		X func(childComplexity int) int
		Y func(childComplexity int) int
		Z func(childComplexity int) int
	}

	Query struct {
		CharacterPortraitByID            func(childComplexity int, id *int) int
		CorporationByID                  func(childComplexity int, id *int) int
		CorporationHistoryForCharacterID func(childComplexity int, id *int) int
		FactionByID                      func(childComplexity int, id *int) int
		OrderHistory                     func(childComplexity int, regionID *int, typeID *int) int
		OrdersForRegion                  func(childComplexity int, regionID int, orderType model.Ordertype, typeID *int, page int) int
		OrdersForRegionByName            func(childComplexity int, region string, orderType model.Ordertype, typeName *string, page int) int
		PlanetByID                       func(childComplexity int, id *int) int
		StationByID                      func(childComplexity int, id *int) int
		SystemByID                       func(childComplexity int, id *int) int
	}

	Race struct {
		Alliance    func(childComplexity int) int
		Description func(childComplexity int) int
		Name        func(childComplexity int) int
		RaceID      func(childComplexity int) int
	}

	Region struct {
		ConstellationList func(childComplexity int) int
		Constellations    func(childComplexity int) int
		Description       func(childComplexity int) int
		Name              func(childComplexity int) int
		RegionID          func(childComplexity int) int
	}

	Star struct {
		Age           func(childComplexity int) int
		ItemType      func(childComplexity int) int
		Luminosity    func(childComplexity int) int
		Name          func(childComplexity int) int
		Radius        func(childComplexity int) int
		SolarSystem   func(childComplexity int) int
		SolarSystemID func(childComplexity int) int
		SpectralClass func(childComplexity int) int
		StarID        func(childComplexity int) int
		Temperature   func(childComplexity int) int
		TypeID        func(childComplexity int) int
	}

	Stargate struct {
		Destination func(childComplexity int) int
		ItemType    func(childComplexity int) int
		Name        func(childComplexity int) int
		Position    func(childComplexity int) int
		StargateID  func(childComplexity int) int
		System      func(childComplexity int) int
		TypeID      func(childComplexity int) int
	}

	StargateDestination struct {
		Stargate   func(childComplexity int) int
		StargateID func(childComplexity int) int
		System     func(childComplexity int) int
		SystemID   func(childComplexity int) int
	}

	Station struct {
		MaxDockableShipVolume    func(childComplexity int) int
		Name                     func(childComplexity int) int
		OfficeRentalCost         func(childComplexity int) int
		Owner                    func(childComplexity int) int
		OwningCorporation        func(childComplexity int) int
		Position                 func(childComplexity int) int
		Race                     func(childComplexity int) int
		RaceID                   func(childComplexity int) int
		ReprocessingEfficiency   func(childComplexity int) int
		ReprocessingStationsTake func(childComplexity int) int
		Services                 func(childComplexity int) int
		StationID                func(childComplexity int) int
		StationType              func(childComplexity int) int
		System                   func(childComplexity int) int
		SystemID                 func(childComplexity int) int
		TypeID                   func(childComplexity int) int
	}

	System struct {
		Constellation   func(childComplexity int) int
		ConstellationID func(childComplexity int) int
		Name            func(childComplexity int) int
		Planets         func(childComplexity int) int
		Position        func(childComplexity int) int
		SecurityClass   func(childComplexity int) int
		Star            func(childComplexity int) int
		StarID          func(childComplexity int) int
		StargateList    func(childComplexity int) int
		Stargates       func(childComplexity int) int
		StationList     func(childComplexity int) int
		Stations        func(childComplexity int) int
		SystemID        func(childComplexity int) int
	}

	SystemPlanet struct {
		AsteroidBelts           func(childComplexity int) int
		AsteroidBeltsProperties func(childComplexity int) int
		MoonDetails             func(childComplexity int) int
		Moons                   func(childComplexity int) int
		PlanetID                func(childComplexity int) int
		PlanetProperties        func(childComplexity int) int
	}

	Unit struct {
		ID func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type ConstellationResolver

type ConstellationResolver interface {
	Region(ctx context.Context, obj *model.Constellation) (*model.Region, error)

	SolarSystems(ctx context.Context, obj *model.Constellation) ([]*model.System, error)
}

type CorporationResolver

type CorporationResolver interface {
	Alliance(ctx context.Context, obj *model.Corporation) (*model.Alliance, error)

	Ceo(ctx context.Context, obj *model.Corporation) (*model.Character, error)

	Creator(ctx context.Context, obj *model.Corporation) (*model.Character, error)

	Faction(ctx context.Context, obj *model.Corporation) (*model.Faction, error)

	HomeStation(ctx context.Context, obj *model.Corporation) (*model.Station, error)
}

type Corporation_historyResolver

type Corporation_historyResolver interface {
	Employer(ctx context.Context, obj *model.CorporationHistory) (*model.Corporation, error)
}

type DirectiveRoot

type DirectiveRoot struct {
}

type Dogma_attributeResolver

type Dogma_attributeResolver interface {
	Attribute(ctx context.Context, obj *model.DogmaAttribute) (*model.DogmaAttributeDetail, error)
}

type Dogma_effectResolver

type Dogma_effectResolver interface {
	Effect(ctx context.Context, obj *model.DogmaEffect) (*model.DogmaEffectDetail, error)
}

type Dogma_effect_detailResolver

type Dogma_effect_detailResolver interface {
	DischargeAttribute(ctx context.Context, obj *model.DogmaEffectDetail) (*model.DogmaAttributeDetail, error)

	DurationAttribute(ctx context.Context, obj *model.DogmaEffectDetail) (*model.DogmaAttributeDetail, error)

	FalloffAttribute(ctx context.Context, obj *model.DogmaEffectDetail) (*model.DogmaAttributeDetail, error)

	RangeAttribute(ctx context.Context, obj *model.DogmaEffectDetail) (*model.DogmaAttributeDetail, error)

	TrackingSpeedAttribute(ctx context.Context, obj *model.DogmaEffectDetail) (*model.DogmaAttributeDetail, error)
}

type FactionResolver

type FactionResolver interface {
	Corporation(ctx context.Context, obj *model.Faction) (*model.Corporation, error)

	MilitiaCorporation(ctx context.Context, obj *model.Faction) (*model.Corporation, error)

	SolarSystem(ctx context.Context, obj *model.Faction) (*model.System, error)
}

type GroupResolver

type GroupResolver interface {
	Category(ctx context.Context, obj *model.Group) (*model.Category, error)

	ItemTypes(ctx context.Context, obj *model.Group) ([]*model.ItemType, error)
}

type Item_typeResolver

type Item_typeResolver interface {
	Graphic(ctx context.Context, obj *model.ItemType) (*model.Graphic, error)

	Group(ctx context.Context, obj *model.ItemType) (*model.Group, error)

	MarketGroup(ctx context.Context, obj *model.ItemType) (*model.MarketGroup, error)
}

type Market_groupResolver

type Market_groupResolver interface {
	ParentGroup(ctx context.Context, obj *model.MarketGroup) (*model.Group, error)

	TypesDetails(ctx context.Context, obj *model.MarketGroup) ([]*model.ItemType, error)
}

type ModifierResolver

type ModifierResolver interface {
	ModifiedAttribute(ctx context.Context, obj *model.Modifier) (*model.DogmaAttributeDetail, error)

	ModifyingAttribute(ctx context.Context, obj *model.Modifier) (*model.DogmaAttributeDetail, error)
}

type MoonResolver

type MoonResolver interface {
	System(ctx context.Context, obj *model.Moon) (*model.System, error)
}

type OrderResolver

type OrderResolver interface {
	Location(ctx context.Context, obj *model.Order) (*model.Station, error)

	System(ctx context.Context, obj *model.Order) (*model.System, error)

	ItemType(ctx context.Context, obj *model.Order) (*model.ItemType, error)
}

type PlanetResolver

type PlanetResolver interface {
	System(ctx context.Context, obj *model.Planet) (*model.System, error)

	ItemType(ctx context.Context, obj *model.Planet) (*model.ItemType, error)
}

type QueryResolver

type QueryResolver interface {
	OrdersForRegion(ctx context.Context, regionID int, orderType model.Ordertype, typeID *int, page int) (*model.OrderWrapper, error)
	OrdersForRegionByName(ctx context.Context, region string, orderType model.Ordertype, typeName *string, page int) (*model.OrderWrapper, error)
	SystemByID(ctx context.Context, id *int) (*model.System, error)
	StationByID(ctx context.Context, id *int) (*model.Station, error)
	PlanetByID(ctx context.Context, id *int) (*model.Planet, error)
	CorporationByID(ctx context.Context, id *int) (*model.Corporation, error)
	CorporationHistoryForCharacterID(ctx context.Context, id *int) ([]*model.CorporationHistory, error)
	CharacterPortraitByID(ctx context.Context, id *int) (*model.CharacterPortrait, error)
	FactionByID(ctx context.Context, id *int) (*model.Faction, error)
	OrderHistory(ctx context.Context, regionID *int, typeID *int) ([]*model.OrderHistory, error)
}

type RegionResolver

type RegionResolver interface {
	ConstellationList(ctx context.Context, obj *model.Region) ([]*model.Constellation, error)
}

type ResolverRoot

type ResolverRoot interface {
	Alliance() AllianceResolver
	Ancestry() AncestryResolver
	Asteroid_belt() Asteroid_beltResolver
	Character() CharacterResolver
	Constellation() ConstellationResolver
	Corporation() CorporationResolver
	Corporation_history() Corporation_historyResolver
	Dogma_attribute() Dogma_attributeResolver
	Dogma_effect() Dogma_effectResolver
	Dogma_effect_detail() Dogma_effect_detailResolver
	Faction() FactionResolver
	Group() GroupResolver
	Item_type() Item_typeResolver
	Market_group() Market_groupResolver
	Modifier() ModifierResolver
	Moon() MoonResolver
	Order() OrderResolver
	Planet() PlanetResolver
	Query() QueryResolver
	Region() RegionResolver
	Star() StarResolver
	Stargate() StargateResolver
	StargateDestination() StargateDestinationResolver
	Station() StationResolver
	System() SystemResolver
	System_planet() System_planetResolver
}

type StarResolver

type StarResolver interface {
	SolarSystem(ctx context.Context, obj *model.Star) (*model.System, error)

	ItemType(ctx context.Context, obj *model.Star) (*model.ItemType, error)
}

type StargateDestinationResolver

type StargateDestinationResolver interface {
	Stargate(ctx context.Context, obj *model.StargateDestination) (*model.Stargate, error)

	System(ctx context.Context, obj *model.StargateDestination) (*model.System, error)
}

type StargateResolver

type StargateResolver interface {
	ItemType(ctx context.Context, obj *model.Stargate) (*model.ItemType, error)
}

type StationResolver

type StationResolver interface {
	OwningCorporation(ctx context.Context, obj *model.Station) (*model.Corporation, error)

	Race(ctx context.Context, obj *model.Station) (*model.Race, error)

	System(ctx context.Context, obj *model.Station) (*model.System, error)

	StationType(ctx context.Context, obj *model.Station) (*model.ItemType, error)
}

type SystemResolver

type SystemResolver interface {
	Constellation(ctx context.Context, obj *model.System) (*model.Constellation, error)

	Star(ctx context.Context, obj *model.System) (*model.Star, error)

	StargateList(ctx context.Context, obj *model.System) ([]*model.Stargate, error)

	StationList(ctx context.Context, obj *model.System) ([]*model.Station, error)
}

type System_planetResolver

type System_planetResolver interface {
	AsteroidBeltsProperties(ctx context.Context, obj *model.SystemPlanet) ([]*model.AsteroidBelt, error)

	MoonDetails(ctx context.Context, obj *model.SystemPlanet) ([]*model.Moon, error)
	PlanetProperties(ctx context.Context, obj *model.SystemPlanet) (*model.Planet, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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