Documentation
¶
Index ¶
- type Client
- func (c *Client) ExtractFunction(content, language, functionName string) (string, error)
- func (c *Client) GetCommitsSince(owner, repo, path string, since time.Time, sinceCommit string) ([]CommitInfo, error)
- func (c *Client) GetDirectory(owner, repo, path, ref string) (map[string]*FileInfo, error)
- func (c *Client) GetFile(owner, repo, path, ref string) (*FileInfo, error)
- func (c *Client) GetFileDiff(owner, repo, path, baseRef, headRef string) (string, error)
- func (c *Client) GetRawFile(owner, repo, path, ref string) ([]byte, error)
- type Commit
- type CommitInfo
- type FileContent
- type FileInfo
- type GitHubClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the GitHub API client
func (*Client) ExtractFunction ¶
ExtractFunction attempts to extract a function from a file
func (*Client) GetCommitsSince ¶
func (c *Client) GetCommitsSince(owner, repo, path string, since time.Time, sinceCommit string) ([]CommitInfo, error)
GetCommitsSince gets all commits for a file since a specific date or commit
func (*Client) GetDirectory ¶
GetDirectory retrieves all files from a directory in a GitHub repository
func (*Client) GetFileDiff ¶
GetFileDiff gets the diff between two versions of a file
type CommitInfo ¶
CommitInfo represents information about a commit
type FileContent ¶
type FileContent struct {
Content string
}
Click to show internal directories.
Click to hide internal directories.