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 BusinessAccountResolver ¶
type BusinessAccountResolver interface { ID(ctx context.Context, obj *model.BusinessAccount) (*int, error) PhoneNumber(ctx context.Context, obj *model.BusinessAccount) (*proto.PhoneNumber, error) Media(ctx context.Context, obj *model.BusinessAccount) (*proto.Media, error) TypeOfBusiness(ctx context.Context, obj *model.BusinessAccount) (*proto.BusinessType, error) MerchantType(ctx context.Context, obj *model.BusinessAccount) (*proto.MerchantType, error) PaymentDetails(ctx context.Context, obj *model.BusinessAccount) (*proto.PaymentProcessingMethods, error) ServicesManagedByBlackspace(ctx context.Context, obj *model.BusinessAccount) (*proto.ServicesManagedByBlackspace, error) FounderAddress(ctx context.Context, obj *model.BusinessAccount) (*proto.Address, error) SubscribedTopics(ctx context.Context, obj *model.BusinessAccount) (*proto.Topics, error) AuthnID(ctx context.Context, obj *model.BusinessAccount) (*int, error) }
type ComplexityRoot ¶
type ComplexityRoot struct { Address struct { Address func(childComplexity int) int ApartmentUnit func(childComplexity int) int Birthdate func(childComplexity int) int City func(childComplexity int) int State func(childComplexity int) int ZipCode func(childComplexity int) int } BusinessAccount struct { AuthnID func(childComplexity int) int BusinessGoals func(childComplexity int) int BusinessStage func(childComplexity int) int Category func(childComplexity int) int CompanyAddress func(childComplexity int) int CompanyName func(childComplexity int) int Email func(childComplexity int) int FounderAddress func(childComplexity int) int ID func(childComplexity int) int IsActive func(childComplexity int) int Media func(childComplexity int) int MerchantType func(childComplexity int) int Password func(childComplexity int) int PaymentDetails func(childComplexity int) int PhoneNumber func(childComplexity int) int ServicesManagedByBlackspace func(childComplexity int) int SubscribedTopics func(childComplexity int) int TypeOfBusiness func(childComplexity int) int } BusinessCategory struct { BeautyAndPersonalCare func(childComplexity int) int CharitiesEducationMembership func(childComplexity int) int FoodAndDrink func(childComplexity int) int HealthCareAndFitness func(childComplexity int) int HomeAndRepair func(childComplexity int) int LeisureAndEntertainment func(childComplexity int) int ProfessionalServices func(childComplexity int) int Retail func(childComplexity int) int Tech func(childComplexity int) int Transportation func(childComplexity int) int } BusinessSubCategory struct { Art func(childComplexity int) int Consulting func(childComplexity int) int Design func(childComplexity int) int Fashion func(childComplexity int) int Fitenss func(childComplexity int) int Food func(childComplexity int) int Gaming func(childComplexity int) int HealthAndBeauty func(childComplexity int) int InteriorDesign func(childComplexity int) int Jewelry func(childComplexity int) int Magazine func(childComplexity int) int Marketing func(childComplexity int) int Music func(childComplexity int) int NonProfit func(childComplexity int) int Photography func(childComplexity int) int Polictics func(childComplexity int) int Restaurants func(childComplexity int) int Services func(childComplexity int) int Technology func(childComplexity int) int Travel func(childComplexity int) int } BusinessType struct { Category func(childComplexity int) int SubCategory func(childComplexity int) int } DateOfBirth struct { Day func(childComplexity int) int Month func(childComplexity int) int Year func(childComplexity int) int } DeleteBusinessAccountResponse struct { Result func(childComplexity int) int } Media struct { Facebook func(childComplexity int) int ID func(childComplexity int) int Instagram func(childComplexity int) int LinkedIn func(childComplexity int) int Pinterest func(childComplexity int) int Website func(childComplexity int) int } MerchantType struct { CasualUse func(childComplexity int) int Charity func(childComplexity int) int LLCCorporation func(childComplexity int) int OnePersonBusiness func(childComplexity int) int Partnership func(childComplexity int) int ReligiousOrganization func(childComplexity int) int SideProject func(childComplexity int) int SoleProprietor func(childComplexity int) int } Mutation struct { CreateBusinessAccount func(childComplexity int, input proto.CreateBusinessAccountRequest) int DeleteBusinessAccount func(childComplexity int, id proto.DeleteBusinessAccountRequest) int UpdateBusinessAccount func(childComplexity int, input proto.UpdateBusinessAccountRequest) int } PaymentMedium struct { Computer func(childComplexity int) int MobilePhone func(childComplexity int) int Tablet func(childComplexity int) int } PaymentOptions struct { BrickAndMortar func(childComplexity int) int OnTheGo func(childComplexity int) int Online func(childComplexity int) int ThroughInvoices func(childComplexity int) int } PaymentProcessingMethods struct { Medium func(childComplexity int) int PaymentOptions func(childComplexity int) int } PhoneNumber struct { Number func(childComplexity int) int Type func(childComplexity int) int } PhoneType struct { Home func(childComplexity int) int Mobile func(childComplexity int) int Work func(childComplexity int) int } Query struct { GetBusinessAccount func(childComplexity int, input proto.GetBusinessAccountRequest) int GetBusinessAccounts func(childComplexity int, limit proto.GetBusinessAccountsRequest) int } ServicesManagedByBlackspace struct { Analytics func(childComplexity int) int Discounts func(childComplexity int) int FundingYourBusiness func(childComplexity int) int GiftCards func(childComplexity int) int ItemCatalog func(childComplexity int) int LoyaltyProgram func(childComplexity int) int MarketingCampaigns func(childComplexity int) int } Topics struct { Art func(childComplexity int) int Business func(childComplexity int) int Cooking func(childComplexity int) int Design func(childComplexity int) int FashionAndStyle func(childComplexity int) int Food func(childComplexity int) int Health func(childComplexity int) int ID func(childComplexity int) int Music func(childComplexity int) int Science func(childComplexity int) int Technology func(childComplexity int) int Travel 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 { CreateBusinessAccount(ctx context.Context, input proto.CreateBusinessAccountRequest) (*model.BusinessAccount, error) UpdateBusinessAccount(ctx context.Context, input proto.UpdateBusinessAccountRequest) (*model.BusinessAccount, error) DeleteBusinessAccount(ctx context.Context, id proto.DeleteBusinessAccountRequest) (*proto.DeleteBusinessAccountResponse, error) }
type QueryResolver ¶
type QueryResolver interface { GetBusinessAccount(ctx context.Context, input proto.GetBusinessAccountRequest) (*model.BusinessAccount, error) GetBusinessAccounts(ctx context.Context, limit proto.GetBusinessAccountsRequest) ([]*model.BusinessAccount, error) }
type ResolverRoot ¶
type ResolverRoot interface { BusinessAccount() BusinessAccountResolver Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.