generated

package
v0.0.0-...-9047660 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 13 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 AppSessionResolver

type AppSessionResolver interface {
	PageViews(ctx context.Context, obj *model.AppSession) ([]*model.PageView, error)
}

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 QueryResolver interface {
	Application(ctx context.Context, id *string) (*model.Application, error)
	Applications(ctx context.Context) ([]*model.Application, error)
}

type ResolverRoot

type ResolverRoot interface {
	AppSession() AppSessionResolver
	Application() ApplicationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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