Documentation ¶
Index ¶
- type Badge
- type BadgeEdge
- type BadgesConnection
- type Comment
- type CommentEdge
- type CommentsConnection
- type CreateBadgeInput
- type CreateCommentInput
- type CreateIssueInput
- type CreateReactionInput
- type CreateStoryInput
- type CreateUserInput
- type FeedsInput
- type GitContributionStats
- type IDMarshaller
- type Issue
- type IssueEdge
- type IssuesConnection
- type Node
- type NodeIDInput
- type NodeResolver
- type NodeType
- type PageInfo
- type Reaction
- type ReactionEdge
- type ReactionsConnection
- type Reputation
- type Resolver
- func (m *Resolver) CreateComment(ctx context.Context, args struct{ ... }) (*Comment, error)
- func (m *Resolver) CreateReaction(ctx context.Context, args struct{ ... }) (*Reaction, error)
- func (m *Resolver) CreateStory(ctx context.Context, args struct{ ... }) (*Story, error)
- func (m *Resolver) CreateUser(ctx context.Context, args struct{ ... }) (*User, error)
- func (r *Resolver) Feeds(ctx context.Context, in *FeedsInput) (*StoriesConnection, error)
- func (r *Resolver) Node(ctx context.Context, in NodeIDInput) (*NodeResolver, error)
- func (m *Resolver) UpdateComment(ctx context.Context, args struct{ ... }) (*Comment, error)
- func (m *Resolver) UpdateReaction(ctx context.Context, args struct{ ... }) (*Reaction, error)
- func (m *Resolver) UpdateStory(ctx context.Context, args struct{ ... }) (*Story, error)
- func (m *Resolver) UpdateUser(ctx context.Context, args struct{ ... }) (*User, error)
- func (r *Resolver) User(ctx context.Context, in *UserInput) (*User, error)
- func (r *Resolver) Viewer(ctx context.Context) (*User, error)
- type StoriesConnection
- type Story
- func (n *Story) Comments(ctx context.Context, in *StoryCommentsInput) (*CommentsConnection, error)
- func (n *Story) CreatedBy(ctx context.Context) (*User, error)
- func (n *Story) ID(ctx context.Context) graphql.ID
- func (n *Story) IssuesFromRepos(ctx context.Context, in *StoryIssuesFromReposInput) (*IssuesConnection, error)
- func (n *Story) Reactions(ctx context.Context, in *StoryReactionsInput) (*ReactionsConnection, error)
- func (n *Story) RelevantIssues(ctx context.Context, in *StoryRelevantIssuesInput) (*IssuesConnection, error)
- type StoryCommentsInput
- type StoryEdge
- type StoryIssuesFromReposInput
- type StoryReactionsInput
- type StoryRelevantIssuesInput
- type UpdateCommentInput
- type UpdateReactionInput
- type UpdateStoryInput
- type UpdateUserInput
- type User
- func (n *User) Badges(ctx context.Context, in *UserBadgesInput) (*BadgesConnection, error)
- func (n *User) ID(ctx context.Context) graphql.ID
- func (n *User) IssuesFromLastRepo(ctx context.Context, in *UserIssuesFromLastRepoInput) (*IssuesConnection, error)
- func (n *User) IssuesFromOtherRecentRepos(ctx context.Context, in *UserIssuesFromOtherRecentReposInput) (*IssuesConnection, error)
- func (n *User) RelevantIssues(ctx context.Context, in *UserRelevantIssuesInput) (*IssuesConnection, error)
- func (n *User) Stories(ctx context.Context, in *UserStoriesInput) (*StoriesConnection, error)
- type UserBadgesInput
- type UserEdge
- type UserInput
- type UserIssuesFromLastRepoInput
- type UserIssuesFromOtherRecentReposInput
- type UserRelevantIssuesInput
- type UserStoriesInput
- type UsersConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badge ¶
type Badge struct { CurrentLevel int32 DisplayName string Id string LinesOfCodeToNextLevel int32 Points int32 ProgressPercentageToNextLevel int32 TimeCreated graphql.Time TimeUpdated graphql.Time // contains filtered or unexported fields }
func NewBadge ¶
func NewBadge(m *usersstore.Badge) *Badge
type BadgesConnection ¶
type BadgesConnection struct { Edges []*BadgeEdge PageInfo *PageInfo // contains filtered or unexported fields }
func NewBadgesConnection ¶
func NewBadgesConnection( filters *usersstore.BadgeFilters, data []*usersstore.Badge, hasNextPage bool, hasPreviousPage bool, cursors []string, ) *BadgesConnection
func (BadgesConnection) TotalCount ¶
func (c BadgesConnection) TotalCount(ctx context.Context) (int32, error)
type Comment ¶
type Comment struct { AbstractContent string ContentJson string Id string TimeCreated graphql.Time TimeUpdated graphql.Time // contains filtered or unexported fields }
func NewComment ¶
func NewComment(m *storiesstore.Comment) *Comment
type CommentEdge ¶
type CommentsConnection ¶
type CommentsConnection struct { Edges []*CommentEdge PageInfo *PageInfo // contains filtered or unexported fields }
func NewCommentsConnection ¶
func NewCommentsConnection( filters *storiesstore.CommentFilters, data []*storiesstore.Comment, hasNextPage bool, hasPreviousPage bool, cursors []string, ) *CommentsConnection
func (CommentsConnection) HasViewerAssociation ¶
func (c CommentsConnection) HasViewerAssociation(ctx context.Context) (bool, error)
func (CommentsConnection) TotalCount ¶
func (c CommentsConnection) TotalCount(ctx context.Context) (int32, error)
type CreateBadgeInput ¶
type CreateBadgeInput struct { CurrentLevel int32 DisplayName string LinesOfCodeToNextLevel int32 Points int32 ProgressPercentageToNextLevel int32 UserID graphql.ID }
func (*CreateBadgeInput) ToModel ¶
func (n *CreateBadgeInput) ToModel() (*usersstore.Badge, error)
type CreateCommentInput ¶
func (*CreateCommentInput) ToModel ¶
func (n *CreateCommentInput) ToModel() (*storiesstore.Comment, error)
type CreateIssueInput ¶
type CreateIssueInput struct { Body string CommentCount int32 IssueType string Labels []*string Repository string RepositoryAvatar string RepositoryUpdatedAt graphql.Time Title string Url string StoryID graphql.ID UserID graphql.ID }
func (*CreateIssueInput) ToModel ¶
func (n *CreateIssueInput) ToModel() (*issuesstore.Issue, error)
type CreateReactionInput ¶
func (*CreateReactionInput) ToModel ¶
func (n *CreateReactionInput) ToModel() (*storiesstore.Reaction, error)
type CreateStoryInput ¶
type CreateStoryInput struct { AbstractContent string ContentJson string Thumbnail string Title string UrlSuffix string UserID graphql.ID }
func (*CreateStoryInput) ToModel ¶
func (n *CreateStoryInput) ToModel() (*storiesstore.Story, error)
type CreateUserInput ¶
type CreateUserInput struct { Avatar string Bio string GitContributionStats *GitContributionStats Handle string Name string Reputation *Reputation }
func (*CreateUserInput) ToModel ¶
func (n *CreateUserInput) ToModel() (*usersstore.User, error)
type FeedsInput ¶
type GitContributionStats ¶
type GitContributionStats struct { Issues int32 PullRequests int32 // contains filtered or unexported fields }
func NewGitContributionStats ¶
func NewGitContributionStats(m *usersstore.GitContributionStats) *GitContributionStats
func (*GitContributionStats) ToModel ¶
func (n *GitContributionStats) ToModel() *usersstore.GitContributionStats
type IDMarshaller ¶
func NewIDMarshaller ¶
func NewIDMarshaller(t NodeType, id string, isUUID bool) *IDMarshaller
func ParseGraphqlID ¶
func ParseGraphqlID(gid graphql.ID) (*IDMarshaller, error)
func (*IDMarshaller) NodeType ¶
func (id *IDMarshaller) NodeType() NodeType
type Issue ¶
type Issue struct { Body string CommentCount int32 Id string IssueType string Labels []*string Repository string RepositoryAvatar string RepositoryUpdatedAt graphql.Time Title string Url string // contains filtered or unexported fields }
func NewIssue ¶
func NewIssue(m *issuesstore.Issue) *Issue
type IssuesConnection ¶
type IssuesConnection struct { Edges []*IssueEdge PageInfo *PageInfo // contains filtered or unexported fields }
func NewIssuesConnection ¶
func NewIssuesConnection( filters *issuesstore.IssueFilters, data []*issuesstore.Issue, hasNextPage bool, hasPreviousPage bool, cursors []string, ) *IssuesConnection
func (IssuesConnection) TotalCount ¶
func (c IssuesConnection) TotalCount(ctx context.Context) (int32, error)
type NodeIDInput ¶
type NodeIDInput struct {
ID graphql.ID
}
type NodeResolver ¶
type NodeResolver struct {
Node
}
func (*NodeResolver) ToBadge ¶
func (n *NodeResolver) ToBadge() (*Badge, bool)
func (*NodeResolver) ToComment ¶
func (n *NodeResolver) ToComment() (*Comment, bool)
func (*NodeResolver) ToIssue ¶
func (n *NodeResolver) ToIssue() (*Issue, bool)
func (*NodeResolver) ToReaction ¶
func (n *NodeResolver) ToReaction() (*Reaction, bool)
func (*NodeResolver) ToStory ¶
func (n *NodeResolver) ToStory() (*Story, bool)
func (*NodeResolver) ToUser ¶
func (n *NodeResolver) ToUser() (*User, bool)
type Reaction ¶
type Reaction struct { Id string TimeCreated graphql.Time TimeUpdated graphql.Time // contains filtered or unexported fields }
func NewReaction ¶
func NewReaction(m *storiesstore.Reaction) *Reaction
type ReactionEdge ¶
type ReactionsConnection ¶
type ReactionsConnection struct { Edges []*ReactionEdge PageInfo *PageInfo // contains filtered or unexported fields }
func NewReactionsConnection ¶
func NewReactionsConnection( filters *storiesstore.ReactionFilters, data []*storiesstore.Reaction, hasNextPage bool, hasPreviousPage bool, cursors []string, ) *ReactionsConnection
func (ReactionsConnection) HasViewerAssociation ¶
func (c ReactionsConnection) HasViewerAssociation(ctx context.Context) (bool, error)
func (ReactionsConnection) TotalCount ¶
func (c ReactionsConnection) TotalCount(ctx context.Context) (int32, error)
type Reputation ¶
type Reputation struct { Value float64 // contains filtered or unexported fields }
func NewReputation ¶
func NewReputation(m *usersstore.Reputation) *Reputation
func (*Reputation) ToModel ¶
func (n *Reputation) ToModel() *usersstore.Reputation
type Resolver ¶
type Resolver struct { }
func (*Resolver) CreateComment ¶
func (*Resolver) CreateReaction ¶
func (*Resolver) CreateStory ¶
func (*Resolver) CreateUser ¶
func (*Resolver) Feeds ¶
func (r *Resolver) Feeds(ctx context.Context, in *FeedsInput) (*StoriesConnection, error)
func (*Resolver) Node ¶
func (r *Resolver) Node(ctx context.Context, in NodeIDInput) (*NodeResolver, error)
func (*Resolver) UpdateComment ¶
func (*Resolver) UpdateReaction ¶
func (*Resolver) UpdateStory ¶
func (*Resolver) UpdateUser ¶
type StoriesConnection ¶
type StoriesConnection struct { Edges []*StoryEdge PageInfo *PageInfo // contains filtered or unexported fields }
func NewStoriesConnection ¶
func NewStoriesConnection( filters *storiesstore.StoryFilters, data []*storiesstore.Story, hasNextPage bool, hasPreviousPage bool, cursors []string, ) *StoriesConnection
func (StoriesConnection) HasViewerAssociation ¶
func (c StoriesConnection) HasViewerAssociation(ctx context.Context) (bool, error)
func (StoriesConnection) TotalCount ¶
func (c StoriesConnection) TotalCount(ctx context.Context) (int32, error)
type Story ¶
type Story struct { AbstractContent string ContentJson string Id string Thumbnail string TimeCreated graphql.Time TimeUpdated graphql.Time Title string UrlSuffix string // contains filtered or unexported fields }
func NewStory ¶
func NewStory(m *storiesstore.Story) *Story
func (*Story) Comments ¶
func (n *Story) Comments(ctx context.Context, in *StoryCommentsInput) (*CommentsConnection, error)
func (*Story) IssuesFromRepos ¶
func (n *Story) IssuesFromRepos(ctx context.Context, in *StoryIssuesFromReposInput) (*IssuesConnection, error)
func (*Story) Reactions ¶
func (n *Story) Reactions(ctx context.Context, in *StoryReactionsInput) (*ReactionsConnection, error)
func (*Story) RelevantIssues ¶
func (n *Story) RelevantIssues(ctx context.Context, in *StoryRelevantIssuesInput) (*IssuesConnection, error)
type StoryCommentsInput ¶
type StoryReactionsInput ¶
type UpdateCommentInput ¶
func (*UpdateCommentInput) ToModel ¶
func (n *UpdateCommentInput) ToModel() *storiesstore.CommentUpdate
type UpdateReactionInput ¶
func (*UpdateReactionInput) ToModel ¶
func (n *UpdateReactionInput) ToModel() *storiesstore.ReactionUpdate
type UpdateStoryInput ¶
type UpdateStoryInput struct { ID graphql.ID AbstractContent *string ContentJson *string Thumbnail *string Title *string }
func (*UpdateStoryInput) ToModel ¶
func (n *UpdateStoryInput) ToModel() *storiesstore.StoryUpdate
type UpdateUserInput ¶
type UpdateUserInput struct { ID graphql.ID Avatar *string Bio *string GitContributionStats *GitContributionStats Name *string Reputation *Reputation }
func (*UpdateUserInput) ToModel ¶
func (n *UpdateUserInput) ToModel() *usersstore.UserUpdate
type User ¶
type User struct { Avatar string Bio string GitContributionStats *GitContributionStats Handle string Id string Name string Reputation *Reputation TimeCreated graphql.Time TimeUpdated graphql.Time // contains filtered or unexported fields }
func NewUser ¶
func NewUser(m *usersstore.User) *User
func (*User) Badges ¶
func (n *User) Badges(ctx context.Context, in *UserBadgesInput) (*BadgesConnection, error)
func (*User) IssuesFromLastRepo ¶
func (n *User) IssuesFromLastRepo(ctx context.Context, in *UserIssuesFromLastRepoInput) (*IssuesConnection, error)
func (*User) IssuesFromOtherRecentRepos ¶
func (n *User) IssuesFromOtherRecentRepos(ctx context.Context, in *UserIssuesFromOtherRecentReposInput) (*IssuesConnection, error)
func (*User) RelevantIssues ¶
func (n *User) RelevantIssues(ctx context.Context, in *UserRelevantIssuesInput) (*IssuesConnection, error)
func (*User) Stories ¶
func (n *User) Stories(ctx context.Context, in *UserStoriesInput) (*StoriesConnection, error)
type UserBadgesInput ¶
type UserRelevantIssuesInput ¶
type UserStoriesInput ¶
type UsersConnection ¶
type UsersConnection struct { Edges []*UserEdge PageInfo *PageInfo // contains filtered or unexported fields }
func NewUsersConnection ¶
func NewUsersConnection( filters *usersstore.UserFilters, data []*usersstore.User, hasNextPage bool, hasPreviousPage bool, cursors []string, ) *UsersConnection
func (UsersConnection) TotalCount ¶
func (c UsersConnection) TotalCount(ctx context.Context) (int32, error)
Source Files ¶
- badgeresolver.go
- comment_mutations.go
- commentresolver.go
- feedsqueryresolver.go
- git_contribution_statsresolver.go
- issueresolver.go
- noderesolver.go
- reaction_mutations.go
- reactionresolver.go
- reputationresolver.go
- resolver.go
- story_mutations.go
- storycommentsqueryresolver.go
- storyissues_from_reposqueryresolver.go
- storyreactionsqueryresolver.go
- storyrelevant_issuesqueryresolver.go
- storyresolver.go
- user_mutations.go
- userbadgesqueryresolver.go
- userissues_from_last_repoqueryresolver.go
- userissues_from_other_recent_reposqueryresolver.go
- userqueryresolver.go
- userrelevant_issuesqueryresolver.go
- userresolver.go
- userstoriesqueryresolver.go
Click to show internal directories.
Click to hide internal directories.