generated

package
v0.0.0-...-3befcbb Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: GPL-3.0 Imports: 22 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 AmountResolver

type AmountResolver interface {
	Token(ctx context.Context, obj *ent.Amount) (model.Token, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	Amount struct {
		Amount func(childComplexity int) int
		ID     func(childComplexity int) int
		Token  func(childComplexity int) int
		Type   func(childComplexity int) int
	}

	BodyPart struct {
		ID   func(childComplexity int) int
		Rle  func(childComplexity int) int
		Sex  func(childComplexity int) int
		Type func(childComplexity int) int
	}

	Dope struct {
		Claimed  func(childComplexity int) int
		ID       func(childComplexity int) int
		Items    func(childComplexity int) int
		LastSale func(childComplexity int) int
		Listings func(childComplexity int) int
		Opened   func(childComplexity int) int
		Rank     func(childComplexity int) int
		Score    func(childComplexity int) int
	}

	DopeConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	DopeEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Hustler struct {
		Accessory  func(childComplexity int) int
		Age        func(childComplexity int) int
		Background func(childComplexity int) int
		Beard      func(childComplexity int) int
		Body       func(childComplexity int) int
		Clothes    func(childComplexity int) int
		Color      func(childComplexity int) int
		Drug       func(childComplexity int) int
		Foot       func(childComplexity int) int
		Hair       func(childComplexity int) int
		Hand       func(childComplexity int) int
		ID         func(childComplexity int) int
		Name       func(childComplexity int) int
		Neck       func(childComplexity int) int
		Order      func(childComplexity int) int
		Ring       func(childComplexity int) int
		Sex        func(childComplexity int) int
		Svg        func(childComplexity int) int
		Title      func(childComplexity int) int
		Type       func(childComplexity int) int
		Vehicle    func(childComplexity int) int
		Viewbox    func(childComplexity int) int
		Waist      func(childComplexity int) int
		Weapon     func(childComplexity int) int
	}

	HustlerConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	HustlerEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Item struct {
		Augmented  func(childComplexity int) int
		Base       func(childComplexity int) int
		Count      func(childComplexity int) int
		Fullname   func(childComplexity int) int
		Greatness  func(childComplexity int) int
		ID         func(childComplexity int) int
		Name       func(childComplexity int) int
		NamePrefix func(childComplexity int) int
		NameSuffix func(childComplexity int) int
		Rles       func(childComplexity int) int
		Suffix     func(childComplexity int) int
		Svg        func(childComplexity int) int
		Tier       func(childComplexity int) int
		Type       func(childComplexity int) int
	}

	ItemConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	ItemEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Listing struct {
		Active       func(childComplexity int) int
		ID           func(childComplexity int) int
		Inputs       func(childComplexity int) int
		Outputs      func(childComplexity int) int
		SeaportOrder func(childComplexity int) int
		Source       func(childComplexity int) int
		WyvernOrder  func(childComplexity int) int
	}

	ListingConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	ListingEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	Query struct {
		Dopes       func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.DopeOrder, where *ent.DopeWhereInput) int
		Hustlers    func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.HustlerOrder, where *ent.HustlerWhereInput) int
		Items       func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.ItemOrder, where *ent.ItemWhereInput) int
		Listings    func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.ListingOrder, where *ent.ListingWhereInput) int
		Node        func(childComplexity int, id string) int
		Nodes       func(childComplexity int, ids []string) int
		Search      func(childComplexity int, query string, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.SearchOrder, where *ent.SearchWhereInput) int
		WalletItems func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.WalletItemsOrder, where *ent.WalletItemsWhereInput) int
		Wallets     func(childComplexity int, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.WalletOrder, where *ent.WalletWhereInput) int
	}

	RLEs struct {
		Female func(childComplexity int) int
		Male   func(childComplexity int) int
	}

	SeaportOrder struct {
		CurrentPrice   func(childComplexity int) int
		ExpirationTime func(childComplexity int) int
		ListingTime    func(childComplexity int) int
		Maker          func(childComplexity int) int
		OrderType      func(childComplexity int) int
		Side           func(childComplexity int) int
	}

	SearchConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	SearchEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	Wallet struct {
		Dopes    func(childComplexity int) int
		Hustlers func(childComplexity int) int
		ID       func(childComplexity int) int
		Items    func(childComplexity int) int
		Paper    func(childComplexity int) int
	}

	WalletConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	WalletEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	WalletItems struct {
		Balance func(childComplexity int) int
		ID      func(childComplexity int) int
		Item    func(childComplexity int) int
		Wallet  func(childComplexity int) int
	}

	WalletItemsConnection struct {
		Edges      func(childComplexity int) int
		PageInfo   func(childComplexity int) int
		TotalCount func(childComplexity int) int
	}

	WalletItemsEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	WyvernOrder struct {
		Calldata           func(childComplexity int) int
		CurrentPrice       func(childComplexity int) int
		Exchange           func(childComplexity int) int
		ExpirationTime     func(childComplexity int) int
		Extra              func(childComplexity int) int
		FeeMethod          func(childComplexity int) int
		FeeRecipient       func(childComplexity int) int
		HowToCall          func(childComplexity int) int
		ListingTime        func(childComplexity int) int
		Maker              func(childComplexity int) int
		MakerProtocolFee   func(childComplexity int) int
		MakerRelayerFee    func(childComplexity int) int
		R                  func(childComplexity int) int
		ReplacementPattern func(childComplexity int) int
		S                  func(childComplexity int) int
		SaleKind           func(childComplexity int) int
		Salt               func(childComplexity int) int
		Side               func(childComplexity int) int
		StaticExtradata    func(childComplexity int) int
		StaticTarget       func(childComplexity int) int
		Target             func(childComplexity int) int
		V                  func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type GameHustlerRelationWhereInputResolver

type GameHustlerRelationWhereInputResolver interface {
	Text(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data *int) error
	TextNeq(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data *int) error
	TextIn(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data []int) error
	TextNotIn(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data []int) error
	TextGt(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data *int) error
	TextGte(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data *int) error
	TextLt(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data *int) error
	TextLte(ctx context.Context, obj *ent.GameHustlerRelationWhereInput, data *int) error
}

type ItemResolver

type ItemResolver interface {
	Fullname(ctx context.Context, obj *ent.Item) (string, error)
}

type ListingResolver

type ListingResolver interface {
	WyvernOrder(ctx context.Context, obj *ent.Listing) (*opensea.WyvernOrder, error)
	SeaportOrder(ctx context.Context, obj *ent.Listing) (*opensea.SeaportOrder, error)
}

type QueryResolver

type QueryResolver interface {
	Node(ctx context.Context, id string) (ent.Noder, error)
	Nodes(ctx context.Context, ids []string) ([]ent.Noder, error)
	Wallets(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.WalletOrder, where *ent.WalletWhereInput) (*ent.WalletConnection, error)
	Dopes(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.DopeOrder, where *ent.DopeWhereInput) (*ent.DopeConnection, error)
	Items(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.ItemOrder, where *ent.ItemWhereInput) (*ent.ItemConnection, error)
	WalletItems(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.WalletItemsOrder, where *ent.WalletItemsWhereInput) (*ent.WalletItemsConnection, error)
	Hustlers(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.HustlerOrder, where *ent.HustlerWhereInput) (*ent.HustlerConnection, error)
	Listings(ctx context.Context, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.ListingOrder, where *ent.ListingWhereInput) (*ent.ListingConnection, error)
	Search(ctx context.Context, query string, after *ent.Cursor, first *int, before *ent.Cursor, last *int, orderBy *ent.SearchOrder, where *ent.SearchWhereInput) (*ent.SearchConnection, error)
}

type ResolverRoot

type ResolverRoot interface {
	Amount() AmountResolver
	Item() ItemResolver
	Listing() ListingResolver
	Query() QueryResolver
	SeaportOrder() SeaportOrderResolver
	SearchEdge() SearchEdgeResolver
	WyvernOrder() WyvernOrderResolver
	GameHustlerRelationWhereInput() GameHustlerRelationWhereInputResolver
}

type SeaportOrderResolver

type SeaportOrderResolver interface {
	Maker(ctx context.Context, obj *opensea.SeaportOrder) (string, error)
	CurrentPrice(ctx context.Context, obj *opensea.SeaportOrder) (string, error)
	ListingTime(ctx context.Context, obj *opensea.SeaportOrder) (uint64, error)
	ExpirationTime(ctx context.Context, obj *opensea.SeaportOrder) (uint64, error)
}

type SearchEdgeResolver

type SearchEdgeResolver interface {
	Node(ctx context.Context, obj *ent.SearchEdge) (model.SearchResult, error)
}

type WyvernOrderResolver

type WyvernOrderResolver interface {
	Exchange(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	ListingTime(ctx context.Context, obj *opensea.WyvernOrder) (uint64, error)
	ExpirationTime(ctx context.Context, obj *opensea.WyvernOrder) (uint64, error)
	Maker(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	CurrentPrice(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	MakerRelayerFee(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	MakerProtocolFee(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	FeeRecipient(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	FeeMethod(ctx context.Context, obj *opensea.WyvernOrder) (int, error)
	Side(ctx context.Context, obj *opensea.WyvernOrder) (int, error)
	SaleKind(ctx context.Context, obj *opensea.WyvernOrder) (int, error)
	Target(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	HowToCall(ctx context.Context, obj *opensea.WyvernOrder) (int, error)
	Calldata(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	ReplacementPattern(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	StaticTarget(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	StaticExtradata(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	Extra(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	Salt(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	V(ctx context.Context, obj *opensea.WyvernOrder) (int, error)
	R(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
	S(ctx context.Context, obj *opensea.WyvernOrder) (string, error)
}

Jump to

Keyboard shortcuts

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