git-bug/api/graphql/models/models.go
Michael Muré 2ab6381a94
Reorganize the webUI and API code
Included in the changes:
- create a new /api root package to hold all API code, migrate /graphql in there
- git API handlers all use the cache instead of the repo directly
- git API handlers are now tested
- git API handlers now require a "repo" mux parameter
- lots of untangling of API/handlers/middleware
- less code in commands/webui.go
2020-06-27 23:03:05 +02:00

24 lines
387 B
Go

// Package models contains the various GraphQL data models
package models
import (
"github.com/MichaelMure/git-bug/cache"
)
type ConnectionInput struct {
After *string
Before *string
First *int
Last *int
}
type Repository struct {
Cache *cache.MultiRepoCache
Repo *cache.RepoCache
}
type RepositoryMutation struct {
Cache *cache.MultiRepoCache
Repo *cache.RepoCache
}