graph

package
v0.0.0-...-bb4c047 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-3.0 Imports: 11 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 {
	CustomField struct {
		ID    func(childComplexity int) int
		Value func(childComplexity int) int
	}

	OrgFields struct {
		SLALevel func(childComplexity int) int
	}

	Organization struct {
		CreatedAt          func(childComplexity int) int
		DomainNames        func(childComplexity int) int
		ID                 func(childComplexity int) int
		Name               func(childComplexity int) int
		OrganizationFields func(childComplexity int) int
		Tags               func(childComplexity int) int
		URL                func(childComplexity int) int
		UpdatedAt          func(childComplexity int) int
	}

	Query struct {
		GetAllTickets   func(childComplexity int, user string, apikey string, url string) int
		GetAllTriggers  func(childComplexity int, config model.ZendeskConfigInput) int
		GetAllViews     func(childComplexity int, config model.ZendeskConfigInput) int
		GetOrganization func(childComplexity int, config model.ZendeskConfigInput, id int) int
		GetTrigger      func(childComplexity int, config model.ZendeskConfigInput, id int) int
		GetUser         func(childComplexity int, user string, apikey string, url string, id string) int
		GetView         func(childComplexity int, config model.ZendeskConfigInput, id int) int
		GetViewCount    func(childComplexity int, config model.ZendeskConfigInput, id int) int
	}

	Ticket struct {
		Assigneeid     func(childComplexity int) int
		Createdat      func(childComplexity int) int
		Customfields   func(childComplexity int) int
		Description    func(childComplexity int) int
		Groupid        func(childComplexity int) int
		ID             func(childComplexity int) int
		Organizationid func(childComplexity int) int
		Priority       func(childComplexity int) int
		Requesterid    func(childComplexity int) int
		SLA            func(childComplexity int) int
		Status         func(childComplexity int) int
		Subject        func(childComplexity int) int
		Tags           func(childComplexity int) int
		URL            func(childComplexity int) int
		Updatedat      func(childComplexity int) int
	}

	Tickets struct {
		Count   func(childComplexity int) int
		Tickets func(childComplexity int) int
	}

	Trigger struct {
		Actions     func(childComplexity int) int
		Active      func(childComplexity int) int
		Conditions  func(childComplexity int) int
		CreatedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Position    func(childComplexity int) int
		RawTitle    func(childComplexity int) int
		Title       func(childComplexity int) int
		URL         func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
	}

	TriggerAction struct {
		Field func(childComplexity int) int
		Value func(childComplexity int) int
	}

	TriggerCondition struct {
		Field    func(childComplexity int) int
		Operator func(childComplexity int) int
		Value    func(childComplexity int) int
	}

	TriggerConditions struct {
		All func(childComplexity int) int
		Any func(childComplexity int) int
	}

	Triggers struct {
		Count    func(childComplexity int) int
		Triggers func(childComplexity int) int
	}

	User struct {
		Active       func(childComplexity int) int
		Createdat    func(childComplexity int) int
		Defaultgroup func(childComplexity int) int
		Email        func(childComplexity int) int
		ID           func(childComplexity int) int
		Lastlogin    func(childComplexity int) int
		Name         func(childComplexity int) int
		Timezone     func(childComplexity int) int
		Updatedat    func(childComplexity int) int
	}

	View struct {
		Active      func(childComplexity int) int
		CreatedAt   func(childComplexity int) int
		Description func(childComplexity int) int
		ID          func(childComplexity int) int
		Title       func(childComplexity int) int
		UpdatedAt   func(childComplexity int) int
	}

	ViewCount struct {
		Fresh  func(childComplexity int) int
		Pretty func(childComplexity int) int
		URL    func(childComplexity int) int
		Value  func(childComplexity int) int
		ViewID func(childComplexity int) int
	}

	Views struct {
		Count func(childComplexity int) int
		Views 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 {
	GetOrganization(ctx context.Context, config model.ZendeskConfigInput, id int) (*model.Organization, error)
	GetAllTickets(ctx context.Context, user string, apikey string, url string) (*model.Tickets, error)
	GetAllTriggers(ctx context.Context, config model.ZendeskConfigInput) (*model.Triggers, error)
	GetTrigger(ctx context.Context, config model.ZendeskConfigInput, id int) (*model.Trigger, error)
	GetUser(ctx context.Context, user string, apikey string, url string, id string) (*model.User, error)
	GetAllViews(ctx context.Context, config model.ZendeskConfigInput) (*model.Views, error)
	GetView(ctx context.Context, config model.ZendeskConfigInput, id int) (*model.View, error)
	GetViewCount(ctx context.Context, config model.ZendeskConfigInput, id int) (*model.ViewCount, error)
}

type ResolverRoot

type ResolverRoot interface {
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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