Documentation
¶
Index ¶
- type Blob
- type Comment
- type Commit
- type CommitParent
- type DBTX
- type Diff
- type FileRev
- type GetDiffIDByCommitPathParams
- type GithubFileMtime
- type InsertBlobParams
- type InsertCommitParams
- type InsertCommitParentParams
- type InsertDiffParams
- type InsertFileRevParams
- type InsertIssueCommentParams
- type InsertIssueParams
- type InsertPRCommentParams
- type InsertPRCommitParams
- type InsertPullRequestParams
- type Issue
- type IssueComment
- type ListRefsByRepoRow
- type PrComment
- type PrCommit
- type PullRequest
- type Queries
- func (q *Queries) DeleteFileRevsByCommit(ctx context.Context, commitID int64) error
- func (q *Queries) DeleteIssue(ctx context.Context, id int64) error
- func (q *Queries) DeleteIssueCommentsByIssue(ctx context.Context, issueID int64) error
- func (q *Queries) DeletePRCommentsByPR(ctx context.Context, prID int64) error
- func (q *Queries) DeletePRCommitsByPR(ctx context.Context, prID int64) error
- func (q *Queries) DeletePullRequest(ctx context.Context, id int64) error
- func (q *Queries) GetBlobIDByHash(ctx context.Context, contentHash string) (int64, error)
- func (q *Queries) GetCommitIDByHash(ctx context.Context, hash string) (int64, error)
- func (q *Queries) GetDiffIDByCommitPath(ctx context.Context, arg GetDiffIDByCommitPathParams) (int64, error)
- func (q *Queries) GetIssueIDByNumber(ctx context.Context, number int64) (int64, error)
- func (q *Queries) GetPRIDByNumber(ctx context.Context, number int64) (int64, error)
- func (q *Queries) GetRepoIDByName(ctx context.Context, name string) (int64, error)
- func (q *Queries) InsertBlob(ctx context.Context, arg InsertBlobParams) error
- func (q *Queries) InsertCommit(ctx context.Context, arg InsertCommitParams) error
- func (q *Queries) InsertCommitParent(ctx context.Context, arg InsertCommitParentParams) error
- func (q *Queries) InsertDiff(ctx context.Context, arg InsertDiffParams) error
- func (q *Queries) InsertFileRev(ctx context.Context, arg InsertFileRevParams) error
- func (q *Queries) InsertIssue(ctx context.Context, arg InsertIssueParams) (sql.Result, error)
- func (q *Queries) InsertIssueComment(ctx context.Context, arg InsertIssueCommentParams) error
- func (q *Queries) InsertPRComment(ctx context.Context, arg InsertPRCommentParams) error
- func (q *Queries) InsertPRCommit(ctx context.Context, arg InsertPRCommitParams) error
- func (q *Queries) InsertPullRequest(ctx context.Context, arg InsertPullRequestParams) (sql.Result, error)
- func (q *Queries) ListCommitHashesByRepo(ctx context.Context, repoID int64) ([]string, error)
- func (q *Queries) ListFileMtimes(ctx context.Context) ([]GithubFileMtime, error)
- func (q *Queries) ListRefsByRepo(ctx context.Context, repoID int64) ([]ListRefsByRepoRow, error)
- func (q *Queries) ListRepoPaths(ctx context.Context) ([]string, error)
- func (q *Queries) MarkBlobCommentsParsed(ctx context.Context, id int64) error
- func (q *Queries) MarkBlobParsed(ctx context.Context, id int64) error
- func (q *Queries) UpdateSymbolParent(ctx context.Context, arg UpdateSymbolParentParams) error
- func (q *Queries) UpsertFileMtime(ctx context.Context, arg UpsertFileMtimeParams) error
- func (q *Queries) UpsertRef(ctx context.Context, arg UpsertRefParams) error
- func (q *Queries) UpsertRepo(ctx context.Context, arg UpsertRepoParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Ref
- type Repo
- type Symbol
- type SymbolRef
- type UpdateSymbolParentParams
- type UpsertFileMtimeParams
- type UpsertRefParams
- type UpsertRepoParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct {
ID int64 `json:"id"`
RepoID int64 `json:"repo_id"`
Hash string `json:"hash"`
Author sql.NullString `json:"author"`
Message sql.NullString `json:"message"`
Timestamp sql.NullInt64 `json:"timestamp"`
}
type CommitParent ¶
type GithubFileMtime ¶
type InsertBlobParams ¶
type InsertBlobParams struct {
ContentHash string `json:"content_hash"`
Language sql.NullString `json:"language"`
}
type InsertCommitParams ¶
type InsertCommitParams struct {
RepoID int64 `json:"repo_id"`
Hash string `json:"hash"`
Author sql.NullString `json:"author"`
Message sql.NullString `json:"message"`
Timestamp sql.NullInt64 `json:"timestamp"`
}
type InsertDiffParams ¶
type InsertFileRevParams ¶
type InsertIssueCommentParams ¶
type InsertIssueCommentParams struct {
IssueID int64 `json:"issue_id"`
Author sql.NullString `json:"author"`
Body sql.NullString `json:"body"`
CreatedAt sql.NullInt64 `json:"created_at"`
}
type InsertIssueParams ¶
type InsertIssueParams struct {
Number int64 `json:"number"`
Title string `json:"title"`
Body sql.NullString `json:"body"`
Author sql.NullString `json:"author"`
State string `json:"state"`
Labels sql.NullString `json:"labels"`
CreatedAt sql.NullInt64 `json:"created_at"`
ClosedAt sql.NullInt64 `json:"closed_at"`
UpdatedAt sql.NullInt64 `json:"updated_at"`
Url sql.NullString `json:"url"`
SourcePath sql.NullString `json:"source_path"`
}
type InsertPRCommentParams ¶
type InsertPRCommentParams struct {
PrID int64 `json:"pr_id"`
Author sql.NullString `json:"author"`
Body sql.NullString `json:"body"`
Path sql.NullString `json:"path"`
Line sql.NullInt64 `json:"line"`
CreatedAt sql.NullInt64 `json:"created_at"`
}
type InsertPRCommitParams ¶
type InsertPullRequestParams ¶
type InsertPullRequestParams struct {
Number int64 `json:"number"`
Title string `json:"title"`
Body sql.NullString `json:"body"`
Author sql.NullString `json:"author"`
State string `json:"state"`
Labels sql.NullString `json:"labels"`
CreatedAt sql.NullInt64 `json:"created_at"`
MergedAt sql.NullInt64 `json:"merged_at"`
ClosedAt sql.NullInt64 `json:"closed_at"`
UpdatedAt sql.NullInt64 `json:"updated_at"`
MergeCommit sql.NullString `json:"merge_commit"`
Url sql.NullString `json:"url"`
SourcePath sql.NullString `json:"source_path"`
}
type Issue ¶
type Issue struct {
ID int64 `json:"id"`
Number int64 `json:"number"`
Title string `json:"title"`
Body sql.NullString `json:"body"`
Author sql.NullString `json:"author"`
State string `json:"state"`
Labels sql.NullString `json:"labels"`
CreatedAt sql.NullInt64 `json:"created_at"`
ClosedAt sql.NullInt64 `json:"closed_at"`
UpdatedAt sql.NullInt64 `json:"updated_at"`
Url sql.NullString `json:"url"`
SourcePath sql.NullString `json:"source_path"`
}
type IssueComment ¶
type IssueComment struct {
ID int64 `json:"id"`
IssueID int64 `json:"issue_id"`
Author sql.NullString `json:"author"`
Body sql.NullString `json:"body"`
CreatedAt sql.NullInt64 `json:"created_at"`
}
type ListRefsByRepoRow ¶
type PrComment ¶
type PrComment struct {
ID int64 `json:"id"`
PrID int64 `json:"pr_id"`
Author sql.NullString `json:"author"`
Body sql.NullString `json:"body"`
Path sql.NullString `json:"path"`
Line sql.NullInt64 `json:"line"`
CreatedAt sql.NullInt64 `json:"created_at"`
}
type PullRequest ¶
type PullRequest struct {
ID int64 `json:"id"`
Number int64 `json:"number"`
Title string `json:"title"`
Body sql.NullString `json:"body"`
Author sql.NullString `json:"author"`
State string `json:"state"`
Labels sql.NullString `json:"labels"`
CreatedAt sql.NullInt64 `json:"created_at"`
MergedAt sql.NullInt64 `json:"merged_at"`
ClosedAt sql.NullInt64 `json:"closed_at"`
UpdatedAt sql.NullInt64 `json:"updated_at"`
MergeCommit sql.NullString `json:"merge_commit"`
Url sql.NullString `json:"url"`
SourcePath sql.NullString `json:"source_path"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteFileRevsByCommit ¶
func (*Queries) DeleteIssueCommentsByIssue ¶
func (*Queries) DeletePRCommentsByPR ¶
func (*Queries) DeletePRCommitsByPR ¶
func (*Queries) DeletePullRequest ¶
func (*Queries) GetBlobIDByHash ¶
func (*Queries) GetCommitIDByHash ¶
func (*Queries) GetDiffIDByCommitPath ¶
func (*Queries) GetIssueIDByNumber ¶
func (*Queries) GetPRIDByNumber ¶
func (*Queries) GetRepoIDByName ¶
func (*Queries) InsertBlob ¶
func (q *Queries) InsertBlob(ctx context.Context, arg InsertBlobParams) error
func (*Queries) InsertCommit ¶
func (q *Queries) InsertCommit(ctx context.Context, arg InsertCommitParams) error
func (*Queries) InsertCommitParent ¶
func (q *Queries) InsertCommitParent(ctx context.Context, arg InsertCommitParentParams) error
func (*Queries) InsertDiff ¶
func (q *Queries) InsertDiff(ctx context.Context, arg InsertDiffParams) error
func (*Queries) InsertFileRev ¶
func (q *Queries) InsertFileRev(ctx context.Context, arg InsertFileRevParams) error
func (*Queries) InsertIssue ¶
func (*Queries) InsertIssueComment ¶
func (q *Queries) InsertIssueComment(ctx context.Context, arg InsertIssueCommentParams) error
func (*Queries) InsertPRComment ¶
func (q *Queries) InsertPRComment(ctx context.Context, arg InsertPRCommentParams) error
func (*Queries) InsertPRCommit ¶
func (q *Queries) InsertPRCommit(ctx context.Context, arg InsertPRCommitParams) error
func (*Queries) InsertPullRequest ¶
func (*Queries) ListCommitHashesByRepo ¶
func (*Queries) ListFileMtimes ¶
func (q *Queries) ListFileMtimes(ctx context.Context) ([]GithubFileMtime, error)
func (*Queries) ListRefsByRepo ¶
func (*Queries) ListRepoPaths ¶
func (*Queries) MarkBlobCommentsParsed ¶
func (*Queries) MarkBlobParsed ¶
func (*Queries) UpdateSymbolParent ¶
func (q *Queries) UpdateSymbolParent(ctx context.Context, arg UpdateSymbolParentParams) error
func (*Queries) UpsertFileMtime ¶
func (q *Queries) UpsertFileMtime(ctx context.Context, arg UpsertFileMtimeParams) error
func (*Queries) UpsertRef ¶
func (q *Queries) UpsertRef(ctx context.Context, arg UpsertRefParams) error
func (*Queries) UpsertRepo ¶
func (q *Queries) UpsertRepo(ctx context.Context, arg UpsertRepoParams) error
type Symbol ¶
type Symbol struct {
ID int64 `json:"id"`
BlobID int64 `json:"blob_id"`
ParentID sql.NullInt64 `json:"parent_id"`
Name string `json:"name"`
Kind string `json:"kind"`
Line int64 `json:"line"`
Col int64 `json:"col"`
EndLine sql.NullInt64 `json:"end_line"`
EndCol sql.NullInt64 `json:"end_col"`
Signature sql.NullString `json:"signature"`
ReturnType sql.NullString `json:"return_type"`
Params sql.NullString `json:"params"`
}
type UpsertFileMtimeParams ¶
type UpsertRefParams ¶
type UpsertRepoParams ¶
Click to show internal directories.
Click to hide internal directories.