Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DetachedCtxMap = make(map[string]*detachedContext)
DetachedCtxMap stores the context of each task using an id
var DetachedLoggerMap = make(map[string]*detachedLogger)
DetachedLoggerMap stores the output of each task using an id
var DetachedTasksMap = make(map[string]*model.DetachedTask)
DetachedTasksMap links detached task with an id
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
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
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.