aboutsummaryrefslogtreecommitdiffstats
path: root/graphql2/resolvers/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'graphql2/resolvers/repo.go')
-rw-r--r--graphql2/resolvers/repo.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/graphql2/resolvers/repo.go b/graphql2/resolvers/repo.go
deleted file mode 100644
index 14019b65..00000000
--- a/graphql2/resolvers/repo.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package resolvers
-
-import (
- "context"
- "github.com/MichaelMure/git-bug/bug"
- "github.com/MichaelMure/git-bug/cache"
-)
-
-type repoResolver struct {
- cache cache.Cacher
- repo cache.RepoCacher
-}
-
-func (repoResolver) AllBugs(ctx context.Context, obj *repoResolver, input ConnectionInput) (BugConnection, error) {
- panic("implement me")
-}
-
-func (repoResolver) Bug(ctx context.Context, obj *repoResolver, prefix string) (*bug.Snapshot, error) {
- b, err := obj.repo.ResolveBugPrefix(prefix)
-
- if err != nil {
- return nil, err
- }
-
- return b.Snapshot(), nil
-}