driver

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubClient

type GitHubClient struct {
	// contains filtered or unexported fields
}

func NewGitHubClient

func NewGitHubClient(accessToken string) *GitHubClient

func (*GitHubClient) QueryGistFiles added in v0.2.0

func (c *GitHubClient) QueryGistFiles(ctx context.Context, userID string, gistName string) (*UserGistFiles, error)

func (*GitHubClient) QueryRepositoryBlob added in v0.2.0

func (c *GitHubClient) QueryRepositoryBlob(ctx context.Context, repoOwner string, repoName string, path string) (
	*RepositoryBlob, error)

type RepositoryBlob added in v0.2.0

type RepositoryBlob struct {
	Repository struct {
		Object struct {
			Blob struct {
				Text string
			} `graphql:"... on Blob"`
		} `graphql:"object(expression: $object_expr)"`
	} `graphql:"repository(owner: $repo_owner, name: $repo_name)"`
}

type UserGistFiles added in v0.2.0

type UserGistFiles struct {
	User struct {
		Gist struct {
			Files []struct {
				Name string
				Text string
			}
		} `graphql:"gist(name: $gist_name)"`
	} `graphql:"user(login: $user_id)"`
}

Jump to

Keyboard shortcuts

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