git-bug: github.com/MichaelMure/git-bug/api/graphql/graph Index | Files

package graph

import "github.com/MichaelMure/git-bug/api/graphql/graph"

Index

Package Files

gen_graph.go

func NewExecutableSchema Uses

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

type AddCommentOperationResolver Uses

type AddCommentOperationResolver interface {
    ID(ctx context.Context, obj *bug.AddCommentOperation) (string, error)
    Author(ctx context.Context, obj *bug.AddCommentOperation) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.AddCommentOperation) (*time.Time, error)
}

type AddCommentTimelineItemResolver Uses

type AddCommentTimelineItemResolver interface {
    ID(ctx context.Context, obj *bug.AddCommentTimelineItem) (string, error)
    Author(ctx context.Context, obj *bug.AddCommentTimelineItem) (models.IdentityWrapper, error)

    CreatedAt(ctx context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error)
    LastEdit(ctx context.Context, obj *bug.AddCommentTimelineItem) (*time.Time, error)
}

type BugResolver Uses

type BugResolver interface {
    ID(ctx context.Context, obj models.BugWrapper) (string, error)
    HumanID(ctx context.Context, obj models.BugWrapper) (string, error)
    Status(ctx context.Context, obj models.BugWrapper) (models.Status, error)

    Actors(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error)
    Participants(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error)
    Comments(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.CommentConnection, error)
    Timeline(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.TimelineItemConnection, error)
    Operations(ctx context.Context, obj models.BugWrapper, after *string, before *string, first *int, last *int) (*models.OperationConnection, error)
}

type ColorResolver Uses

type ColorResolver interface {
    R(ctx context.Context, obj *color.RGBA) (int, error)
    G(ctx context.Context, obj *color.RGBA) (int, error)
    B(ctx context.Context, obj *color.RGBA) (int, error)
}

type CommentHistoryStepResolver Uses

type CommentHistoryStepResolver interface {
    Date(ctx context.Context, obj *bug.CommentHistoryStep) (*time.Time, error)
}

type CommentResolver Uses

type CommentResolver interface {
    Author(ctx context.Context, obj *bug.Comment) (models.IdentityWrapper, error)
}

type ComplexityRoot Uses

type ComplexityRoot struct {
    AddCommentOperation struct {
        Author  func(childComplexity int) int
        Date    func(childComplexity int) int
        Files   func(childComplexity int) int
        ID      func(childComplexity int) int
        Message func(childComplexity int) int
    }

    AddCommentPayload struct {
        Bug              func(childComplexity int) int
        ClientMutationID func(childComplexity int) int
        Operation        func(childComplexity int) int
    }

    AddCommentTimelineItem struct {
        Author         func(childComplexity int) int
        CreatedAt      func(childComplexity int) int
        Edited         func(childComplexity int) int
        Files          func(childComplexity int) int
        History        func(childComplexity int) int
        ID             func(childComplexity int) int
        LastEdit       func(childComplexity int) int
        Message        func(childComplexity int) int
        MessageIsEmpty func(childComplexity int) int
    }

    Bug struct {
        Actors       func(childComplexity int, after *string, before *string, first *int, last *int) int
        Author       func(childComplexity int) int
        Comments     func(childComplexity int, after *string, before *string, first *int, last *int) int
        CreatedAt    func(childComplexity int) int
        HumanID      func(childComplexity int) int
        ID           func(childComplexity int) int
        Labels       func(childComplexity int) int
        LastEdit     func(childComplexity int) int
        Operations   func(childComplexity int, after *string, before *string, first *int, last *int) int
        Participants func(childComplexity int, after *string, before *string, first *int, last *int) int
        Status       func(childComplexity int) int
        Timeline     func(childComplexity int, after *string, before *string, first *int, last *int) int
        Title        func(childComplexity 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
    }

    ChangeLabelPayload struct {
        Bug              func(childComplexity int) int
        ClientMutationID func(childComplexity int) int
        Operation        func(childComplexity int) int
        Results          func(childComplexity int) int
    }

    CloseBugPayload struct {
        Bug              func(childComplexity int) int
        ClientMutationID func(childComplexity int) int
        Operation        func(childComplexity int) int
    }

    Color struct {
        B   func(childComplexity int) int
        G   func(childComplexity int) int
        R   func(childComplexity int) int
    }

    Comment struct {
        Author  func(childComplexity int) int
        Files   func(childComplexity int) int
        Message 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 {
        Date    func(childComplexity int) int
        Message func(childComplexity int) int
    }

    CreateOperation struct {
        Author  func(childComplexity int) int
        Date    func(childComplexity int) int
        Files   func(childComplexity int) int
        ID      func(childComplexity int) int
        Message func(childComplexity int) int
        Title   func(childComplexity int) int
    }

    CreateTimelineItem struct {
        Author         func(childComplexity int) int
        CreatedAt      func(childComplexity int) int
        Edited         func(childComplexity int) int
        Files          func(childComplexity int) int
        History        func(childComplexity int) int
        ID             func(childComplexity int) int
        LastEdit       func(childComplexity int) int
        Message        func(childComplexity int) int
        MessageIsEmpty func(childComplexity int) int
    }

    EditCommentOperation struct {
        Author  func(childComplexity int) int
        Date    func(childComplexity int) int
        Files   func(childComplexity int) int
        ID      func(childComplexity int) int
        Message func(childComplexity int) int
        Target  func(childComplexity int) int
    }

    Identity struct {
        AvatarUrl   func(childComplexity int) int
        DisplayName func(childComplexity int) int
        Email       func(childComplexity int) int
        HumanID     func(childComplexity int) int
        ID          func(childComplexity int) int
        IsProtected func(childComplexity int) int
        Login       func(childComplexity int) int
        Name        func(childComplexity int) int
    }

    IdentityConnection struct {
        Edges      func(childComplexity int) int
        Nodes      func(childComplexity int) int
        PageInfo   func(childComplexity int) int
        TotalCount func(childComplexity int) int
    }

    IdentityEdge struct {
        Cursor func(childComplexity int) int
        Node   func(childComplexity int) int
    }

    Label struct {
        Color func(childComplexity int) int
        Name  func(childComplexity int) int
    }

    LabelChangeOperation struct {
        Added   func(childComplexity int) int
        Author  func(childComplexity int) int
        Date    func(childComplexity int) int
        ID      func(childComplexity int) int
        Removed func(childComplexity int) int
    }

    LabelChangeResult struct {
        Label  func(childComplexity int) int
        Status func(childComplexity int) int
    }

    LabelChangeTimelineItem struct {
        Added   func(childComplexity int) int
        Author  func(childComplexity int) int
        Date    func(childComplexity int) int
        ID      func(childComplexity int) int
        Removed func(childComplexity int) int
    }

    LabelConnection struct {
        Edges      func(childComplexity int) int
        Nodes      func(childComplexity int) int
        PageInfo   func(childComplexity int) int
        TotalCount func(childComplexity int) int
    }

    LabelEdge struct {
        Cursor func(childComplexity int) int
        Node   func(childComplexity int) int
    }

    Mutation struct {
        AddComment   func(childComplexity int, input models.AddCommentInput) int
        ChangeLabels func(childComplexity int, input *models.ChangeLabelInput) int
        CloseBug     func(childComplexity int, input models.CloseBugInput) int
        NewBug       func(childComplexity int, input models.NewBugInput) int
        OpenBug      func(childComplexity int, input models.OpenBugInput) int
        SetTitle     func(childComplexity int, input models.SetTitleInput) int
    }

    NewBugPayload struct {
        Bug              func(childComplexity int) int
        ClientMutationID func(childComplexity int) int
        Operation        func(childComplexity int) int
    }

    OpenBugPayload struct {
        Bug              func(childComplexity int) int
        ClientMutationID func(childComplexity int) int
        Operation        func(childComplexity int) 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 {
        EndCursor       func(childComplexity int) int
        HasNextPage     func(childComplexity int) int
        HasPreviousPage func(childComplexity int) int
        StartCursor     func(childComplexity int) int
    }

    Query struct {
        Repository func(childComplexity int, ref *string) int
    }

    Repository struct {
        AllBugs       func(childComplexity int, after *string, before *string, first *int, last *int, query *string) int
        AllIdentities func(childComplexity int, after *string, before *string, first *int, last *int) int
        Bug           func(childComplexity int, prefix string) int
        Identity      func(childComplexity int, prefix string) int
        Name          func(childComplexity int) int
        UserIdentity  func(childComplexity int) int
        ValidLabels   func(childComplexity int, after *string, before *string, first *int, last *int) int
    }

    SetStatusOperation struct {
        Author func(childComplexity int) int
        Date   func(childComplexity int) int
        ID     func(childComplexity int) int
        Status func(childComplexity int) int
    }

    SetStatusTimelineItem struct {
        Author func(childComplexity int) int
        Date   func(childComplexity int) int
        ID     func(childComplexity int) int
        Status func(childComplexity int) int
    }

    SetTitleOperation struct {
        Author func(childComplexity int) int
        Date   func(childComplexity int) int
        ID     func(childComplexity int) int
        Title  func(childComplexity int) int
        Was    func(childComplexity int) int
    }

    SetTitlePayload struct {
        Bug              func(childComplexity int) int
        ClientMutationID func(childComplexity int) int
        Operation        func(childComplexity int) int
    }

    SetTitleTimelineItem struct {
        Author func(childComplexity int) int
        Date   func(childComplexity int) int
        ID     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 Uses

type Config struct {
    Resolvers  ResolverRoot
    Directives DirectiveRoot
    Complexity ComplexityRoot
}

type CreateOperationResolver Uses

type CreateOperationResolver interface {
    ID(ctx context.Context, obj *bug.CreateOperation) (string, error)
    Author(ctx context.Context, obj *bug.CreateOperation) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.CreateOperation) (*time.Time, error)
}

type CreateTimelineItemResolver Uses

type CreateTimelineItemResolver interface {
    ID(ctx context.Context, obj *bug.CreateTimelineItem) (string, error)
    Author(ctx context.Context, obj *bug.CreateTimelineItem) (models.IdentityWrapper, error)

    CreatedAt(ctx context.Context, obj *bug.CreateTimelineItem) (*time.Time, error)
    LastEdit(ctx context.Context, obj *bug.CreateTimelineItem) (*time.Time, error)
}

type DirectiveRoot Uses

type DirectiveRoot struct {
}

type EditCommentOperationResolver Uses

type EditCommentOperationResolver interface {
    ID(ctx context.Context, obj *bug.EditCommentOperation) (string, error)
    Author(ctx context.Context, obj *bug.EditCommentOperation) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.EditCommentOperation) (*time.Time, error)
    Target(ctx context.Context, obj *bug.EditCommentOperation) (string, error)
}

type IdentityResolver Uses

type IdentityResolver interface {
    ID(ctx context.Context, obj models.IdentityWrapper) (string, error)
    HumanID(ctx context.Context, obj models.IdentityWrapper) (string, error)
}

type LabelChangeOperationResolver Uses

type LabelChangeOperationResolver interface {
    ID(ctx context.Context, obj *bug.LabelChangeOperation) (string, error)
    Author(ctx context.Context, obj *bug.LabelChangeOperation) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.LabelChangeOperation) (*time.Time, error)
}

type LabelChangeResultResolver Uses

type LabelChangeResultResolver interface {
    Status(ctx context.Context, obj *bug.LabelChangeResult) (models.LabelChangeStatus, error)
}

type LabelChangeTimelineItemResolver Uses

type LabelChangeTimelineItemResolver interface {
    ID(ctx context.Context, obj *bug.LabelChangeTimelineItem) (string, error)
    Author(ctx context.Context, obj *bug.LabelChangeTimelineItem) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.LabelChangeTimelineItem) (*time.Time, error)
}

type LabelResolver Uses

type LabelResolver interface {
    Name(ctx context.Context, obj *bug.Label) (string, error)
    Color(ctx context.Context, obj *bug.Label) (*color.RGBA, error)
}

type MutationResolver Uses

type MutationResolver interface {
    NewBug(ctx context.Context, input models.NewBugInput) (*models.NewBugPayload, error)
    AddComment(ctx context.Context, input models.AddCommentInput) (*models.AddCommentPayload, error)
    ChangeLabels(ctx context.Context, input *models.ChangeLabelInput) (*models.ChangeLabelPayload, error)
    OpenBug(ctx context.Context, input models.OpenBugInput) (*models.OpenBugPayload, error)
    CloseBug(ctx context.Context, input models.CloseBugInput) (*models.CloseBugPayload, error)
    SetTitle(ctx context.Context, input models.SetTitleInput) (*models.SetTitlePayload, error)
}

type QueryResolver Uses

type QueryResolver interface {
    Repository(ctx context.Context, ref *string) (*models.Repository, error)
}

type RepositoryResolver Uses

type RepositoryResolver interface {
    Name(ctx context.Context, obj *models.Repository) (*string, error)
    AllBugs(ctx context.Context, obj *models.Repository, after *string, before *string, first *int, last *int, query *string) (*models.BugConnection, error)
    Bug(ctx context.Context, obj *models.Repository, prefix string) (models.BugWrapper, error)
    AllIdentities(ctx context.Context, obj *models.Repository, after *string, before *string, first *int, last *int) (*models.IdentityConnection, error)
    Identity(ctx context.Context, obj *models.Repository, prefix string) (models.IdentityWrapper, error)
    UserIdentity(ctx context.Context, obj *models.Repository) (models.IdentityWrapper, error)
    ValidLabels(ctx context.Context, obj *models.Repository, after *string, before *string, first *int, last *int) (*models.LabelConnection, error)
}

type ResolverRoot Uses

type ResolverRoot interface {
    AddCommentOperation() AddCommentOperationResolver
    AddCommentTimelineItem() AddCommentTimelineItemResolver
    Bug() BugResolver
    Color() ColorResolver
    Comment() CommentResolver
    CommentHistoryStep() CommentHistoryStepResolver
    CreateOperation() CreateOperationResolver
    CreateTimelineItem() CreateTimelineItemResolver
    EditCommentOperation() EditCommentOperationResolver
    Identity() IdentityResolver
    Label() LabelResolver
    LabelChangeOperation() LabelChangeOperationResolver
    LabelChangeResult() LabelChangeResultResolver
    LabelChangeTimelineItem() LabelChangeTimelineItemResolver
    Mutation() MutationResolver
    Query() QueryResolver
    Repository() RepositoryResolver
    SetStatusOperation() SetStatusOperationResolver
    SetStatusTimelineItem() SetStatusTimelineItemResolver
    SetTitleOperation() SetTitleOperationResolver
    SetTitleTimelineItem() SetTitleTimelineItemResolver
}

type SetStatusOperationResolver Uses

type SetStatusOperationResolver interface {
    ID(ctx context.Context, obj *bug.SetStatusOperation) (string, error)
    Author(ctx context.Context, obj *bug.SetStatusOperation) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.SetStatusOperation) (*time.Time, error)
    Status(ctx context.Context, obj *bug.SetStatusOperation) (models.Status, error)
}

type SetStatusTimelineItemResolver Uses

type SetStatusTimelineItemResolver interface {
    ID(ctx context.Context, obj *bug.SetStatusTimelineItem) (string, error)
    Author(ctx context.Context, obj *bug.SetStatusTimelineItem) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.SetStatusTimelineItem) (*time.Time, error)
    Status(ctx context.Context, obj *bug.SetStatusTimelineItem) (models.Status, error)
}

type SetTitleOperationResolver Uses

type SetTitleOperationResolver interface {
    ID(ctx context.Context, obj *bug.SetTitleOperation) (string, error)
    Author(ctx context.Context, obj *bug.SetTitleOperation) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.SetTitleOperation) (*time.Time, error)
}

type SetTitleTimelineItemResolver Uses

type SetTitleTimelineItemResolver interface {
    ID(ctx context.Context, obj *bug.SetTitleTimelineItem) (string, error)
    Author(ctx context.Context, obj *bug.SetTitleTimelineItem) (models.IdentityWrapper, error)
    Date(ctx context.Context, obj *bug.SetTitleTimelineItem) (*time.Time, error)
}

Package graph imports 16 packages (graph) and is imported by 2 packages. Updated 2020-07-29. Refresh now. Tools for package owners.