aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/resolvers/root.go
blob: e5f830600e1e1b1f8f57511a03d6e476c5a8f1cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package resolvers

import (
	"github.com/MichaelMure/git-bug/cache"
)

type RootResolver struct {
	cache.RootCache
}

func NewRootResolver() *RootResolver {
	return &RootResolver{
		RootCache: cache.NewCache(),
	}
}

func (r RootResolver) Query() QueryResolver {
	return &rootQueryResolver{
		cache: &r.RootCache,
	}
}

func (RootResolver) AddCommentOperation() AddCommentOperationResolver {
	return &addCommentOperationResolver{}
}

func (r RootResolver) Bug() BugResolver {
	return &bugResolver{
		cache: &r.RootCache,
	}
}

func (RootResolver) CreateOperation() CreateOperationResolver {
	return &createOperationResolver{}
}

func (RootResolver) LabelChangeOperation() LabelChangeOperationResolver {
	return &labelChangeOperation{}
}

func (r RootResolver) Repository() RepositoryResolver {
	return &repoResolver{
		cache: &r.RootCache,
	}
}

func (RootResolver) SetStatusOperation() SetStatusOperationResolver {
	return &setStatusOperationResolver{}
}

func (RootResolver) SetTitleOperation() SetTitleOperationResolver {
	return &setTitleOperationResolver{}
}