graph

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 15 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 {
	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
	}

	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
		GetGoal            func(childComplexity int, idSite int, idGoal int) int
		GetGoals           func(childComplexity int, idSite int, goalIds []int, opts *model.GetGoalsOptions) 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
	}

	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
		TotalAbandonedCarts            func(childComplexity int) int
		TotalAbandonedCartsItems       func(childComplexity int) int
		TotalAbandonedCartsRevenue     func(childComplexity int) int
		TotalEcommerceConversions      func(childComplexity int) int
		TotalEcommerceItems            func(childComplexity int) int
		TotalEcommerceRevenue          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 {
		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
		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 GoalResolver

type GoalResolver interface {
	ConvertedVisits(ctx context.Context, obj *model.Goal, opts *model.ConvertedVisitsOptions, orderBy *model.OrderByOptions) ([]*model.Visit, error)
}

type QueryResolver

type QueryResolver interface {
	HelloWorld(ctx context.Context) (string, 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)
	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) Goal

func (r *Resolver) Goal() GoalResolver

Goal returns GoalResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() QueryResolver

Query returns QueryResolver 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 {
	Goal() GoalResolver
	Query() QueryResolver
	Visit() VisitResolver
	VisitActionDetails() VisitActionDetailsResolver
}

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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