mirror of
https://github.com/datarhei/core.git
synced 2025-10-26 09:20:33 +08:00
Update dependencies
This commit is contained in:
@@ -2,6 +2,7 @@ package resolver
|
||||
|
||||
// This file will be automatically regenerated based on the schema, any resolver implementations
|
||||
// will be copied through when generating and any unknown code will be moved to the end.
|
||||
// Code generated by github.com/99designs/gqlgen version v0.17.36
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -9,6 +10,7 @@ import (
|
||||
"github.com/datarhei/core/v16/http/graph/models"
|
||||
)
|
||||
|
||||
// Processes is the resolver for the processes field.
|
||||
func (r *queryResolver) Processes(ctx context.Context) ([]*models.Process, error) {
|
||||
ids := r.Restream.GetProcessIDs("", "")
|
||||
|
||||
@@ -26,10 +28,12 @@ func (r *queryResolver) Processes(ctx context.Context) ([]*models.Process, error
|
||||
return procs, nil
|
||||
}
|
||||
|
||||
// Process is the resolver for the process field.
|
||||
func (r *queryResolver) Process(ctx context.Context, id string) (*models.Process, error) {
|
||||
return r.getProcess(id)
|
||||
}
|
||||
|
||||
// Probe is the resolver for the probe field.
|
||||
func (r *queryResolver) Probe(ctx context.Context, id string) (*models.Probe, error) {
|
||||
probe := r.Restream.Probe(id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user