graph

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DetachedCtxMap = make(map[string]*detachedContext)

DetachedCtxMap stores the context of each task using an id

View Source
var DetachedLoggerMap = make(map[string]*detachedLogger)

DetachedLoggerMap stores the output of each task using an id

View Source
var DetachedTasksMap = make(map[string]*model.DetachedTask)

DetachedTasksMap links detached task with an id

View Source
var ServerCtx context.Context

ServerCtx stores the context on which the server is running

Functions

func CancelDetachedTasks

func CancelDetachedTasks()

CancelDetachedTasks call cancel on all the context

func TaskWG

func TaskWG(ctx context.Context, cliEngine *engine.Engine, task string, wg *sync.WaitGroup, errChan chan map[string]error)

TaskWG run a working group of tasks

Types

type ContextKey added in v0.7.0

type ContextKey int

ContextKey is a type for the values that are send on each request

const (
	// ElkFileKey stores which is the file path used to run the server
	ElkFileKey ContextKey = iota

	// TokenKey token that is sent by the user request
	TokenKey ContextKey = iota

	// AuthorizationKey stores the valid authorization key
	AuthorizationKey ContextKey = iota
)

type QLWriter added in v0.7.3

type QLWriter struct {
	// contains filtered or unexported fields
}

QLWriter writes the logs from a task to an specific output

func (QLWriter) Write added in v0.7.3

func (w QLWriter) Write(p []byte) (int, error)

type Resolver

type Resolver struct{}

Resolver injects dependency for graphql This file will not be regenerated automatically.

It serves as dependency injection for your app, add any dependencies you require here.

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

func (*Resolver) Subscription added in v0.8.0

func (r *Resolver) Subscription() generated.SubscriptionResolver

Subscription returns generated.SubscriptionResolver implementation.

Directories

Path Synopsis
scalars

Jump to

Keyboard shortcuts

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