store

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
	// contains filtered or unexported fields
}

func (*DB) Begin

func (s *DB) Begin() error

func (*DB) Cleanup

func (s *DB) Cleanup(ctx context.Context, currentVersion int) error

func (*DB) Commit

func (s *DB) Commit() error

func (*DB) Rollback

func (s *DB) Rollback() error

func (*DB) SaveIssue

func (s *DB) SaveIssue(ctx context.Context, repositoryOwner, repositoryName string, issue *graphql.Issue, assignees []string, labels []string) error

func (*DB) SaveIssueComment

func (s *DB) SaveIssueComment(ctx context.Context, repositoryOwner, repositoryName string, issueNumber int, comment *graphql.IssueComment) error

func (*DB) SaveOrganization

func (s *DB) SaveOrganization(ctx context.Context, organization *graphql.Organization) error

func (*DB) SavePullRequest

func (s *DB) SavePullRequest(ctx context.Context, repositoryOwner, repositoryName string, pr *graphql.PullRequest, assignees []string, labels []string) error

func (*DB) SavePullRequestComment

func (s *DB) SavePullRequestComment(ctx context.Context, repositoryOwner, repositoryName string, pullRequestNumber int, comment *graphql.IssueComment) error

func (*DB) SavePullRequestReview

func (s *DB) SavePullRequestReview(ctx context.Context, repositoryOwner, repositoryName string, pullRequestNumber int, review *graphql.PullRequestReview) error

func (*DB) SavePullRequestReviewComment

func (s *DB) SavePullRequestReviewComment(ctx context.Context, repositoryOwner, repositoryName string, pullRequestNumber int, pullRequestReviewId int, comment *graphql.PullRequestReviewComment) error

func (*DB) SaveRepository

func (s *DB) SaveRepository(ctx context.Context, repository *graphql.RepositoryFields, topics []string) error

func (*DB) SaveUser

func (s *DB) SaveUser(ctx context.Context, orgID int, orgLogin string, user *graphql.UserExtended) error

func (*DB) SetActiveVersion

func (s *DB) SetActiveVersion(ctx context.Context, v int) error

func (*DB) Version

func (s *DB) Version(v int)

type Stdout

type Stdout struct{}

func (*Stdout) Begin

func (s *Stdout) Begin() error

func (*Stdout) Cleanup

func (s *Stdout) Cleanup(ctx context.Context, currentVersion int) error

func (*Stdout) Commit

func (s *Stdout) Commit() error

func (*Stdout) Rollback

func (s *Stdout) Rollback() error

func (*Stdout) SaveIssue

func (s *Stdout) SaveIssue(ctx context.Context, repositoryOwner, repositoryName string, issue *graphql.Issue, assignees []string, labels []string) error

func (*Stdout) SaveIssueComment

func (s *Stdout) SaveIssueComment(ctx context.Context, repositoryOwner, repositoryName string, issueNumber int, comment *graphql.IssueComment) error

func (*Stdout) SaveOrganization

func (s *Stdout) SaveOrganization(ctx context.Context, organization *graphql.Organization) error

func (*Stdout) SavePullRequest

func (s *Stdout) SavePullRequest(ctx context.Context, repositoryOwner, repositoryName string, pr *graphql.PullRequest, assignees []string, labels []string) error

func (*Stdout) SavePullRequestComment

func (s *Stdout) SavePullRequestComment(ctx context.Context, repositoryOwner, repositoryName string, pullRequestNumber int, comment *graphql.IssueComment) error

func (*Stdout) SavePullRequestReview

func (s *Stdout) SavePullRequestReview(ctx context.Context, repositoryOwner, repositoryName string, pullRequestNumber int, review *graphql.PullRequestReview) error

func (*Stdout) SavePullRequestReviewComment

func (s *Stdout) SavePullRequestReviewComment(ctx context.Context, repositoryOwner, repositoryName string, pullRequestNumber int, pullRequestReviewId int, comment *graphql.PullRequestReviewComment) error

func (*Stdout) SaveRepository

func (s *Stdout) SaveRepository(ctx context.Context, repository *graphql.RepositoryFields, topics []string) error

func (*Stdout) SaveUser

func (s *Stdout) SaveUser(ctx context.Context, orgID int, orgLogin string, user *graphql.UserExtended) error

func (*Stdout) SetActiveVersion

func (s *Stdout) SetActiveVersion(ctx context.Context, v int) error

func (*Stdout) Version

func (s *Stdout) Version(v int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL