mirror of
https://github.com/datarhei/core.git
synced 2025-10-05 16:07:07 +08:00

Commits (Ingo Oppermann): - Add experimental SRT connection stats and logs - Hide /config/reload endpoint in reade-only mode - Add SRT server - Create v16 in go.mod - Fix data races, tests, lint, and update dependencies - Add trailing slash for routed directories (datarhei/restreamer#340) - Allow relative URLs in content in static routes Co-Authored-By: Ingo Oppermann <57445+ioppermann@users.noreply.github.com>
28 lines
819 B
Go
28 lines
819 B
Go
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.
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/datarhei/core/v16/http/graph/graph"
|
|
)
|
|
|
|
func (r *mutationResolver) Ping(ctx context.Context) (string, error) {
|
|
return "pong", nil
|
|
}
|
|
|
|
func (r *queryResolver) Ping(ctx context.Context) (string, error) {
|
|
return "pong", nil
|
|
}
|
|
|
|
// Mutation returns graph.MutationResolver implementation.
|
|
func (r *Resolver) Mutation() graph.MutationResolver { return &mutationResolver{r} }
|
|
|
|
// Query returns graph.QueryResolver implementation.
|
|
func (r *Resolver) Query() graph.QueryResolver { return &queryResolver{r} }
|
|
|
|
type mutationResolver struct{ *Resolver }
|
|
type queryResolver struct{ *Resolver }
|