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 { AggregateContinentInfo struct { Continent func(childComplexity int) int NumVisits func(childComplexity int) int PrettyName func(childComplexity int) int } AggregateCountryInfo struct { Country func(childComplexity int) int Flag func(childComplexity int) int NumVisits func(childComplexity int) int PrettyName func(childComplexity int) int } AggregateDeviceInfo struct { Count func(childComplexity int) int Devices func(childComplexity int) int Icon func(childComplexity int) int Type func(childComplexity int) int } BrowserInfo struct { Browser func(childComplexity int) int Code func(childComplexity int) int Family func(childComplexity int) int FamilyDescription func(childComplexity int) int Icon func(childComplexity int) int Name func(childComplexity int) int Version func(childComplexity int) int } CampaignInfo struct { Content func(childComplexity int) int Group func(childComplexity int) int ID func(childComplexity int) int Keyword func(childComplexity int) int Medium func(childComplexity int) int Name func(childComplexity int) int Placement func(childComplexity int) int Source func(childComplexity int) int } DeviceInfo struct { Brand func(childComplexity int) int Model func(childComplexity int) int OperatingSystem func(childComplexity int) int OperatingSystemCode func(childComplexity int) int OperatingSystemIcon func(childComplexity int) int OperatingSystemName func(childComplexity int) int OperatingSystemVersion func(childComplexity int) int Resolution func(childComplexity int) int Type func(childComplexity int) int TypeIcon func(childComplexity int) int } EcommerceGoal struct { AveragePrice func(childComplexity int) int AverageQuantity func(childComplexity int) int ConversionRate func(childComplexity int) int ConversionRatePercent func(childComplexity int) int ConvertedVisits func(childComplexity int, opts *model.ConvertedVisitsOptions, orderBy *model.OrderByOptions) int IDSite func(childComplexity int) int Label func(childComplexity int) int NumActions func(childComplexity int) int NumVisits func(childComplexity int) int Orders func(childComplexity int) int Quantity func(childComplexity int) int Revenue func(childComplexity int) int Segment func(childComplexity int) int SumDailyNumUniqueVisitors func(childComplexity int) int } Goal struct { AllowMultiple func(childComplexity int) int CaseSensitive func(childComplexity int) int ConvertedVisits func(childComplexity int, opts *model.ConvertedVisitsOptions, orderBy *model.OrderByOptions) int Deleted func(childComplexity int) int Description func(childComplexity int) int EventValueAsRevenue func(childComplexity int) int IDGoal func(childComplexity int) int IDSite func(childComplexity int) int MatchAttribute func(childComplexity int) int Name func(childComplexity int) int Pattern func(childComplexity int) int PatternType func(childComplexity int) int Revenue func(childComplexity int) int } Location struct { City func(childComplexity int) int Continent func(childComplexity int) int ContinentCode func(childComplexity int) int Country func(childComplexity int) int CountryCode func(childComplexity int) int CountryFlag func(childComplexity int) int Latitude func(childComplexity int) int Location func(childComplexity int) int Longitude func(childComplexity int) int Region func(childComplexity int) int RegionCode func(childComplexity int) int } Query struct { GetAllGoals func(childComplexity int, idSite int, opts *model.GetGoalsOptions) int GetEcommerceGoalsName func(childComplexity int, idSite int, opts model.GetEcommerceGoalsOptions) int GetEcommerceGoalsSku func(childComplexity int, idSite int, opts model.GetEcommerceGoalsOptions) int GetGoal func(childComplexity int, idSite int, idGoal int) int GetGoals func(childComplexity int, idSite int, goalIds []int, opts *model.GetGoalsOptions) int GetSiteFromID func(childComplexity int, idSite int) int GetSiteURLsFromID func(childComplexity int, idSite int) int GetSitesFromID func(childComplexity int, siteIDs []int) int GetSitesWithAtLeastViewAccess func(childComplexity int) int GetSitesWithViewAccess func(childComplexity int) int GetVisitorProfile func(childComplexity int, idSite int, visitorID string) int GetVisitorProfiles func(childComplexity int, idSite int, visitorIds []string) int HelloWorld func(childComplexity int) int } ReferrerInfo struct { Keyword func(childComplexity int) int KeywordPosition func(childComplexity int) int Name func(childComplexity int) int SearchEngineIcon func(childComplexity int) int SearchEngineURL func(childComplexity int) int SocialNetworkIcon func(childComplexity int) int SocialNetworkURL func(childComplexity int) int Type func(childComplexity int) int URL func(childComplexity int) int } ShortDeviceInfo struct { Count func(childComplexity int) int Name func(childComplexity int) int } Site struct { Currency func(childComplexity int) int CurrencyName func(childComplexity int) int Ecommerce func(childComplexity int) int ExcludeUnknownUrls func(childComplexity int) int ExcludedIPs func(childComplexity int) int ExcludedParameters func(childComplexity int) int ExcludedReferrers func(childComplexity int) int ExcludedUserAgents func(childComplexity int) int Goals func(childComplexity int, opts *model.GetGoalsOptions) int Group func(childComplexity int) int IDSite func(childComplexity int) int KeepURLFragment func(childComplexity int) int LastVisits func(childComplexity int, opts *model.LastVisitsOpts) int MainURL func(childComplexity int) int Name func(childComplexity int) int Sitesearch func(childComplexity int) int SitesearchCategoryParameters func(childComplexity int) int SitesearchKeywordParameters func(childComplexity int) int Timezone func(childComplexity int) int TimezoneName func(childComplexity int) int TsCreated func(childComplexity int) int Type func(childComplexity int) int } Visit struct { ActionDetails func(childComplexity int) int Actions func(childComplexity int) int AdClickID func(childComplexity int) int AdProviderID func(childComplexity int) int AdProviderName func(childComplexity int) int Browser func(childComplexity int) int BrowserCode func(childComplexity int) int BrowserFamily func(childComplexity int) int BrowserFamilyDescription func(childComplexity int) int BrowserIcon func(childComplexity int) int BrowserInfo func(childComplexity int) int BrowserName func(childComplexity int) int BrowserVersion func(childComplexity int) int CampaignContent func(childComplexity int) int CampaignGroup func(childComplexity int) int CampaignID func(childComplexity int) int CampaignInfo func(childComplexity int) int CampaignKeyword func(childComplexity int) int CampaignMedium func(childComplexity int) int CampaignName func(childComplexity int) int CampaignPlacement func(childComplexity int) int CampaignSource func(childComplexity int) int City func(childComplexity int) int Continent func(childComplexity int) int ContinentCode func(childComplexity int) int Country func(childComplexity int) int CountryCode func(childComplexity int) int CountryFlag func(childComplexity int) int DaysSinceFirstVisit func(childComplexity int) int DaysSinceLastEcommerceOrder func(childComplexity int) int DaysSinceLastVisit func(childComplexity int) int DeviceBrand func(childComplexity int) int DeviceInfo func(childComplexity int) int DeviceModel func(childComplexity int) int DeviceType func(childComplexity int) int DeviceTypeIcon func(childComplexity int) int Events func(childComplexity int) int Fingerprint func(childComplexity int) int FirstActionTimestamp func(childComplexity int) int FormConversions func(childComplexity int) int GoalConversions func(childComplexity int) int IDSite func(childComplexity int) int IDVisit func(childComplexity int) int Interactions func(childComplexity int) int Language func(childComplexity int) int LanguageCode func(childComplexity int) int LastActionDateTime func(childComplexity int) int LastActionTimestamp func(childComplexity int) int Latitude func(childComplexity int) int Location func(childComplexity int) int LocationInfo func(childComplexity int) int Longitude func(childComplexity int) int OperatingSystem func(childComplexity int) int OperatingSystemCode func(childComplexity int) int OperatingSystemIcon func(childComplexity int) int OperatingSystemName func(childComplexity int) int OperatingSystemVersion func(childComplexity int) int Plugins func(childComplexity int) int Region func(childComplexity int) int RegionCode func(childComplexity int) int Resolution func(childComplexity int) int Searches func(childComplexity int) int SecondsSinceFirstVisit func(childComplexity int) int SecondsSinceLastEcommerceOrder func(childComplexity int) int SecondsSinceLastVisit func(childComplexity int) int ServerDate func(childComplexity int) int ServerDatePretty func(childComplexity int) int ServerDatePrettyFirstAction func(childComplexity int) int ServerTimePretty func(childComplexity int) int ServerTimePrettyFirstAction func(childComplexity int) int ServerTimestamp func(childComplexity int) int SessionReplayURL func(childComplexity int) int SiteCurrency func(childComplexity int) int SiteCurrencySymbol func(childComplexity int) int SiteName func(childComplexity int) int UserID func(childComplexity int) int VisitConverted func(childComplexity int) int VisitConvertedIcon func(childComplexity int) int VisitCount func(childComplexity int) int VisitDuration func(childComplexity int) int VisitDurationPretty func(childComplexity int) int VisitEcommerceStatus func(childComplexity int) int VisitEcommerceStatusIcon func(childComplexity int) int VisitIP func(childComplexity int) int VisitLocalHour func(childComplexity int) int VisitLocalTime func(childComplexity int) int VisitServerHour func(childComplexity int) int VisitorID func(childComplexity int) int VisitorProfile func(childComplexity int) int VisitorType func(childComplexity int) int VisitorTypeIcon func(childComplexity int) int } VisitActionDetails struct { EventAction func(childComplexity int) int EventCategory func(childComplexity int) int EventName func(childComplexity int) int GoalName func(childComplexity int) int GoalPageID func(childComplexity int) int IDPageView func(childComplexity int) int PageID func(childComplexity int) int PageIDAction func(childComplexity int) int PageTitle func(childComplexity int) int PageViewPosition func(childComplexity int) int Referrer func(childComplexity int) int ReferrerKeyword func(childComplexity int) int ReferrerName func(childComplexity int) int ReferrerType func(childComplexity int) int Revenue func(childComplexity int) int RevenueSubTotal func(childComplexity int) int ServerTimePretty func(childComplexity int) int Subtitle func(childComplexity int) int TimeSpent func(childComplexity int) int TimeSpentPretty func(childComplexity int) int Timestamp func(childComplexity int) int Title func(childComplexity int) int Type func(childComplexity int) int URL func(childComplexity int) int } VisitorFirstLastVisit struct { Date func(childComplexity int) int DaysAgo func(childComplexity int) int PrettyDate func(childComplexity int) int ReferrerType func(childComplexity int) int ReferrerURL func(childComplexity int) int RefferalSummary func(childComplexity int) int } VisitorProfile struct { Continents func(childComplexity int) int Countries func(childComplexity int) int Devices func(childComplexity int) int FirstVisit func(childComplexity int) int LastVisit func(childComplexity int) int LastVisits func(childComplexity int) int VisitorID func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EcommerceGoalResolver ¶ added in v0.6.0
type EcommerceGoalResolver interface { ConversionRate(ctx context.Context, obj *model.EcommerceGoal) (float64, error) ConvertedVisits(ctx context.Context, obj *model.EcommerceGoal, opts *model.ConvertedVisitsOptions, orderBy *model.OrderByOptions) ([]*model.Visit, error) }
type GoalResolver ¶
type QueryResolver ¶
type QueryResolver interface { HelloWorld(ctx context.Context) (string, error) GetEcommerceGoalsName(ctx context.Context, idSite int, opts model.GetEcommerceGoalsOptions) ([]*model.EcommerceGoal, error) GetEcommerceGoalsSku(ctx context.Context, idSite int, opts model.GetEcommerceGoalsOptions) ([]*model.EcommerceGoal, error) GetGoal(ctx context.Context, idSite int, idGoal int) (*model.Goal, error) GetGoals(ctx context.Context, idSite int, goalIds []int, opts *model.GetGoalsOptions) ([]*model.Goal, error) GetAllGoals(ctx context.Context, idSite int, opts *model.GetGoalsOptions) ([]*model.Goal, error) GetSiteFromID(ctx context.Context, idSite int) (*model.Site, error) GetSitesFromID(ctx context.Context, siteIDs []int) ([]*model.Site, error) GetSiteURLsFromID(ctx context.Context, idSite int) ([]string, error) GetSitesWithViewAccess(ctx context.Context) ([]*model.Site, error) GetSitesWithAtLeastViewAccess(ctx context.Context) ([]*model.Site, error) GetVisitorProfile(ctx context.Context, idSite int, visitorID string) (*model.VisitorProfile, error) GetVisitorProfiles(ctx context.Context, idSite int, visitorIds []string) ([]*model.VisitorProfile, error) }
type Resolver ¶
type Resolver struct{}
func (*Resolver) EcommerceGoal ¶ added in v0.6.0
func (r *Resolver) EcommerceGoal() EcommerceGoalResolver
EcommerceGoal returns EcommerceGoalResolver implementation.
func (*Resolver) Goal ¶
func (r *Resolver) Goal() GoalResolver
Goal returns GoalResolver implementation.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
func (*Resolver) Site ¶ added in v0.8.0
func (r *Resolver) Site() SiteResolver
Site returns SiteResolver implementation.
func (*Resolver) Visit ¶
func (r *Resolver) Visit() VisitResolver
Visit returns VisitResolver implementation.
func (*Resolver) VisitActionDetails ¶
func (r *Resolver) VisitActionDetails() VisitActionDetailsResolver
VisitActionDetails returns VisitActionDetailsResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface { EcommerceGoal() EcommerceGoalResolver Goal() GoalResolver Query() QueryResolver Site() SiteResolver Visit() VisitResolver VisitActionDetails() VisitActionDetailsResolver }
type SiteResolver ¶ added in v0.8.0
type VisitActionDetailsResolver ¶
type VisitActionDetailsResolver interface {
Referrer(ctx context.Context, obj *model.VisitActionDetails) (*model.ReferrerInfo, error)
}
type VisitResolver ¶
type VisitResolver interface { VisitorProfile(ctx context.Context, obj *model.Visit) (*model.VisitorProfile, error) DeviceInfo(ctx context.Context, obj *model.Visit) (*model.DeviceInfo, error) BrowserInfo(ctx context.Context, obj *model.Visit) (*model.BrowserInfo, error) LocationInfo(ctx context.Context, obj *model.Visit) (*model.Location, error) CampaignInfo(ctx context.Context, obj *model.Visit) (*model.CampaignInfo, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.