Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type AddCommentOperationResolver
- type AddCommentTimelineItemResolver
- type BugResolver
- type CommentHistoryStepResolver
- type ComplexityRoot
- type Config
- type CreateOperationResolver
- type CreateTimelineItemResolver
- type DirectiveRoot
- type LabelChangeOperationResolver
- type LabelChangeTimelineItemResolver
- type MutationResolver
- type QueryResolver
- type RepositoryResolver
- type ResolverRoot
- type SetStatusOperationResolver
- type SetStatusTimelineItemResolver
- type SetTitleOperationResolver
- type SetTitleTimelineItemResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type BugResolver ¶
type BugResolver interface { Status(ctx context.Context, obj *bug.Snapshot) (models.Status, error) LastEdit(ctx context.Context, obj *bug.Snapshot) (time.Time, error) Comments(ctx context.Context, obj *bug.Snapshot, after *string, before *string, first *int, last *int) (models.CommentConnection, error) Timeline(ctx context.Context, obj *bug.Snapshot, after *string, before *string, first *int, last *int) (models.TimelineItemConnection, error) Operations(ctx context.Context, obj *bug.Snapshot, after *string, before *string, first *int, last *int) (models.OperationConnection, error) }
type ComplexityRoot ¶
type ComplexityRoot struct { AddCommentOperation struct { Author func(childComplexity int) int Date func(childComplexity int) int Message func(childComplexity int) int Files func(childComplexity int) int } AddCommentTimelineItem struct { Hash func(childComplexity int) int Author func(childComplexity int) int Message func(childComplexity int) int Files func(childComplexity int) int CreatedAt func(childComplexity int) int LastEdit func(childComplexity int) int Edited func(childComplexity int) int History func(childComplexity int) int } Bug struct { Id func(childComplexity int) int HumanId func(childComplexity int) int Status func(childComplexity int) int Title func(childComplexity int) int Labels func(childComplexity int) int Author func(childComplexity int) int CreatedAt func(childComplexity int) int LastEdit func(childComplexity int) int Comments func(childComplexity int, after *string, before *string, first *int, last *int) int Timeline func(childComplexity int, after *string, before *string, first *int, last *int) int Operations func(childComplexity int, after *string, before *string, first *int, last *int) int } BugConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } BugEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Comment struct { Author func(childComplexity int) int Message func(childComplexity int) int Files func(childComplexity int) int } CommentConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } CommentEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CommentHistoryStep struct { Message func(childComplexity int) int Date func(childComplexity int) int } CreateOperation struct { Author func(childComplexity int) int Date func(childComplexity int) int Title func(childComplexity int) int Message func(childComplexity int) int Files func(childComplexity int) int } CreateTimelineItem struct { Hash func(childComplexity int) int Author func(childComplexity int) int Message func(childComplexity int) int Files func(childComplexity int) int CreatedAt func(childComplexity int) int LastEdit func(childComplexity int) int Edited func(childComplexity int) int History func(childComplexity int) int } LabelChangeOperation struct { Hash func(childComplexity int) int Author func(childComplexity int) int Date func(childComplexity int) int Added func(childComplexity int) int Removed func(childComplexity int) int } LabelChangeTimelineItem struct { Hash func(childComplexity int) int Author func(childComplexity int) int Date func(childComplexity int) int Added func(childComplexity int) int Removed func(childComplexity int) int } Mutation struct { NewBug func(childComplexity int, repoRef *string, title string, message string, files []git.Hash) int AddComment func(childComplexity int, repoRef *string, prefix string, message string, files []git.Hash) int ChangeLabels func(childComplexity int, repoRef *string, prefix string, added []string, removed []string) int Open func(childComplexity int, repoRef *string, prefix string) int Close func(childComplexity int, repoRef *string, prefix string) int SetTitle func(childComplexity int, repoRef *string, prefix string, title string) int Commit func(childComplexity int, repoRef *string, prefix string) int } OperationConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } OperationEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PageInfo struct { HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int EndCursor func(childComplexity int) int } Person struct { Email func(childComplexity int) int Name func(childComplexity int) int AvatarUrl func(childComplexity int) int } Query struct { DefaultRepository func(childComplexity int) int Repository func(childComplexity int, id string) int } Repository struct { AllBugs func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int Bug func(childComplexity int, prefix string) int } SetStatusOperation struct { Hash func(childComplexity int) int Author func(childComplexity int) int Date func(childComplexity int) int Status func(childComplexity int) int } SetStatusTimelineItem struct { Hash func(childComplexity int) int Author func(childComplexity int) int Date func(childComplexity int) int Status func(childComplexity int) int } SetTitleOperation struct { Hash func(childComplexity int) int Author func(childComplexity int) int Date func(childComplexity int) int Title func(childComplexity int) int Was func(childComplexity int) int } SetTitleTimelineItem struct { Hash func(childComplexity int) int Author func(childComplexity int) int Date func(childComplexity int) int Title func(childComplexity int) int Was func(childComplexity int) int } TimelineItemConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } TimelineItemEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CreateOperationResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type MutationResolver ¶
type MutationResolver interface { NewBug(ctx context.Context, repoRef *string, title string, message string, files []git.Hash) (bug.Snapshot, error) AddComment(ctx context.Context, repoRef *string, prefix string, message string, files []git.Hash) (bug.Snapshot, error) ChangeLabels(ctx context.Context, repoRef *string, prefix string, added []string, removed []string) (bug.Snapshot, error) Open(ctx context.Context, repoRef *string, prefix string) (bug.Snapshot, error) Close(ctx context.Context, repoRef *string, prefix string) (bug.Snapshot, error) SetTitle(ctx context.Context, repoRef *string, prefix string, title string) (bug.Snapshot, error) Commit(ctx context.Context, repoRef *string, prefix string) (bug.Snapshot, error) }
type QueryResolver ¶
type RepositoryResolver ¶
type ResolverRoot ¶
type ResolverRoot interface { AddCommentOperation() AddCommentOperationResolver AddCommentTimelineItem() AddCommentTimelineItemResolver Bug() BugResolver CommentHistoryStep() CommentHistoryStepResolver CreateOperation() CreateOperationResolver CreateTimelineItem() CreateTimelineItemResolver LabelChangeOperation() LabelChangeOperationResolver LabelChangeTimelineItem() LabelChangeTimelineItemResolver Mutation() MutationResolver Query() QueryResolver Repository() RepositoryResolver SetStatusOperation() SetStatusOperationResolver SetStatusTimelineItem() SetStatusTimelineItemResolver SetTitleOperation() SetTitleOperationResolver SetTitleTimelineItem() SetTitleTimelineItemResolver }
Click to show internal directories.
Click to hide internal directories.