mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-16 02:33:26 +03:00
2ab6381a94
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
24 lines
387 B
Go
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
|
|
}
|