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 AppSessionResolver ¶
type ApplicationResolver ¶
type ApplicationResolver interface {
Sessions(ctx context.Context, obj *model.Application, timeFilter model.TimeFilter, dataFilter []*model.AppSessionsDataFilter, pagination *model.Pagination) (*model.AppSessionsPage, error)
}
type ComplexityRoot ¶
type ComplexityRoot struct { AppSession struct { AgentName func(childComplexity int) int AgentVersion func(childComplexity int) int City func(childComplexity int) int Country func(childComplexity int) int DeviceBrand func(childComplexity int) int DeviceClass func(childComplexity int) int DeviceName func(childComplexity int) int EndedAt func(childComplexity int) int EngagedTime func(childComplexity int) int FirstPagePath func(childComplexity int) int ID func(childComplexity int) int LastPagePath func(childComplexity int) int OperatingSystem func(childComplexity int) int OsVersionMajor func(childComplexity int) int OsVersionMinor func(childComplexity int) int PageViews func(childComplexity int) int ReferrerSource func(childComplexity int) int Region func(childComplexity int) int StartedAt func(childComplexity int) int UtmCampaign func(childComplexity int) int UtmContent func(childComplexity int) int UtmMedium func(childComplexity int) int UtmNetwork func(childComplexity int) int UtmSource func(childComplexity int) int UtmTerm func(childComplexity int) int } AppSessionsPage struct { Content func(childComplexity int) int TotalElements func(childComplexity int) int TotalPages func(childComplexity int) int } Application struct { ID func(childComplexity int) int Name func(childComplexity int) int Platform func(childComplexity int) int Sessions func(childComplexity int, timeFilter model.TimeFilter, dataFilter []*model.AppSessionsDataFilter, pagination *model.Pagination) int TrackerName func(childComplexity int) int } PageView struct { EngagedTime func(childComplexity int) int ID func(childComplexity int) int Order func(childComplexity int) int Path func(childComplexity int) int Title func(childComplexity int) int } Query struct { Application func(childComplexity int, id *string) int Applications func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { AppSession() AppSessionResolver Application() ApplicationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.