genserver

package
v0.0.0-...-c210e20 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: BSD-3-Clause 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 ComplexityRoot

type ComplexityRoot struct {
	AnalyticsEventResponse struct {
		Sent func(childComplexity int) int
	}

	AvailableUpdate struct {
		Channel  func(childComplexity int) int
		Path     func(childComplexity int) int
		Platform func(childComplexity int) int
		Sha256   func(childComplexity int) int
		Version  func(childComplexity int) int
	}

	ConfigChangedResponse struct {
		Received func(childComplexity int) int
	}

	GlobFileResult struct {
		Hash    func(childComplexity int) int
		Path    func(childComplexity int) int
		Pattern func(childComplexity int) int
	}

	GlobResult struct {
		Files func(childComplexity int) int
		Hash  func(childComplexity int) int
	}

	JWT struct {
		Token func(childComplexity int) int
		User  func(childComplexity int) int
	}

	Mutation struct {
		SetCache func(childComplexity int, key string, value string, expiry int) int
	}

	NotificationInfo struct {
		Condition func(childComplexity int) int
		EndDate   func(childComplexity int) int
		ID        func(childComplexity int) int
		Interrupt func(childComplexity int) int
		Message   func(childComplexity int) int
		Placement func(childComplexity int) int
		Repeat    func(childComplexity int) int
		StartDate func(childComplexity int) int
	}

	Organization struct {
		Role    func(childComplexity int) int
		URLname func(childComplexity int) int
	}

	ProcessInfo struct {
		Exe func(childComplexity int) int
		Pid func(childComplexity int) int
	}

	Project struct {
		Locations func(childComplexity int) int
		Namespace func(childComplexity int) int
	}

	Query struct {
		AnalyticsEvent     func(childComplexity int, category string, action string, source string, label *string, dimensionsJSON string) int
		AvailableUpdate    func(childComplexity int, desiredChannel string, desiredVersion string) int
		CheckNotifications func(childComplexity int, command string, flags []string) int
		ConfigChanged      func(childComplexity int, key string) int
		FetchLogTail       func(childComplexity int) int
		GetCache           func(childComplexity int, key string) int
		GetJwt             func(childComplexity int) int
		GetProcessesInUse  func(childComplexity int, execDir string) int
		HashGlobs          func(childComplexity int, wd string, globs []string) int
		Projects           func(childComplexity int) int
		ReportRuntimeUsage func(childComplexity int, pid int, exec string, source string, dimensionsJSON string) int
		Version            func(childComplexity int) int
	}

	ReportRuntimeUsageResponse struct {
		Received func(childComplexity int) int
	}

	StateVersion struct {
		Channel  func(childComplexity int) int
		Date     func(childComplexity int) int
		License  func(childComplexity int) int
		Revision func(childComplexity int) int
		Version  func(childComplexity int) int
	}

	User struct {
		Email         func(childComplexity int) int
		Organizations func(childComplexity int) int
		UserID        func(childComplexity int) int
		Username      func(childComplexity int) int
	}

	Version struct {
		State func(childComplexity int) int
	}
}

type Config

type Config struct {
	Schema     *ast.Schema
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type MutationResolver

type MutationResolver interface {
	SetCache(ctx context.Context, key string, value string, expiry int) (*graphqltypes.Void, error)
}

type QueryResolver

type QueryResolver interface {
	Version(ctx context.Context) (*graph.Version, error)
	AvailableUpdate(ctx context.Context, desiredChannel string, desiredVersion string) (*graph.AvailableUpdate, error)
	Projects(ctx context.Context) ([]*graph.Project, error)
	AnalyticsEvent(ctx context.Context, category string, action string, source string, label *string, dimensionsJSON string) (*graph.AnalyticsEventResponse, error)
	ReportRuntimeUsage(ctx context.Context, pid int, exec string, source string, dimensionsJSON string) (*graph.ReportRuntimeUsageResponse, error)
	CheckNotifications(ctx context.Context, command string, flags []string) ([]*graph.NotificationInfo, error)
	ConfigChanged(ctx context.Context, key string) (*graph.ConfigChangedResponse, error)
	FetchLogTail(ctx context.Context) (string, error)
	GetProcessesInUse(ctx context.Context, execDir string) ([]*graph.ProcessInfo, error)
	GetJwt(ctx context.Context) (*graph.Jwt, error)
	HashGlobs(ctx context.Context, wd string, globs []string) (*graph.GlobResult, error)
	GetCache(ctx context.Context, key string) (string, error)
}

type ResolverRoot

type ResolverRoot interface {
	Mutation() MutationResolver
	Query() QueryResolver
}

Jump to

Keyboard shortcuts

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