githubapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package githubapi wraps GitHub REST and GraphQL access, the rate tracker, and the MOCKED_TOKEN safety guard. See specs/001-project-foundation/contracts/github-api.md for the authoritative shape of each exported type.

Index

Constants

View Source
const DefaultGraphQLURL = "https://api.github.com/graphql"

DefaultGraphQLURL is the production GraphQL endpoint.

View Source
const DefaultRESTBaseURL = "https://api.github.com"

DefaultRESTBaseURL is the production endpoint for the REST API. The constructor accepts overrides so tests can point the client at an httptest server.

View Source
const OrganizationMembers_Operation = `` /* 279-byte string literal not displayed */

The query executed by OrganizationMembers.

View Source
const OrganizationRepositories_Operation = `` /* 676-byte string literal not displayed */

The query executed by OrganizationRepositories.

View Source
const Organization_Operation = `` /* 179-byte string literal not displayed */

The query executed by Organization.

View Source
const Repository_Operation = `` /* 451-byte string literal not displayed */

The query executed by Repository.

View Source
const UserFollowers_Operation = `` /* 275-byte string literal not displayed */

The query executed by UserFollowers.

View Source
const UserIndepth_Operation = `` /* 829-byte string literal not displayed */

The query executed by UserIndepth.

View Source
const UserReactions_Operation = `` /* 328-byte string literal not displayed */

The query executed by UserReactions.

View Source
const UserRepositories_Operation = `` /* 688-byte string literal not displayed */

The query executed by UserRepositories.

View Source
const UserStarredRepositories_Operation = `` /* 374-byte string literal not displayed */

The query executed by UserStarredRepositories.

View Source
const User_Operation = `` /* 183-byte string literal not displayed */

The query executed by User.

Variables

This section is empty.

Functions

func IsRealGitHubHost

func IsRealGitHubHost(host string) bool

IsRealGitHubHost reports whether host names a production GitHub endpoint. Exported so callers (including this package's tests) can run the same predicate without re-implementing it.

The match is case-insensitive and considers:

  • api.github.com
  • github.com
  • *.githubusercontent.com (raw, avatars, codeload, ...)

func ValidateToken

func ValidateToken(raw string) error

ValidateToken returns nil when raw is acceptable for outbound calls, or a typed *InputError describing why it cannot be used. Centralized here so REST and GraphQL constructors share one decision.

Types

type GraphQL

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

GraphQL wraps the genqlient client with the project's standard transport (retryable HTTP + MOCKED_TOKEN panic guard) and exposes the typed query methods that plugins consume.

func NewGraphQL

func NewGraphQL(token config.Token, customBaseURL string, opts httpx.Options) (*GraphQL, error)

NewGraphQL constructs the GraphQL client. The token is validated and classified up front; for TokenMocked the transport is wrapped in [newMockedGuard] so any request that escapes to a real GitHub host fails loudly (FR-017).

func (*GraphQL) BaseURL

func (g *GraphQL) BaseURL() string

BaseURL returns the configured GraphQL endpoint.

func (*GraphQL) Client

func (g *GraphQL) Client() graphql.Client

Client exposes the underlying genqlient client.

func (*GraphQL) Organization

func (g *GraphQL) Organization(ctx context.Context, login string) (*OrganizationResponse, error)

Organization fetches the typed OrganizationOrganization payload by login.

func (*GraphQL) OrganizationMembers

func (g *GraphQL) OrganizationMembers(ctx context.Context, login string, first int, after *string) (*OrganizationMembersResponse, error)

OrganizationMembers fetches a page of an organization's members. The `after` cursor enables paging.

func (*GraphQL) OrganizationRepositories

func (g *GraphQL) OrganizationRepositories(ctx context.Context, login string, first int, after *string) (*OrganizationRepositoriesResponse, error)

OrganizationRepositories is the organization-side equivalent of UserRepositories. The `after` cursor is threaded for paging the same way.

func (*GraphQL) Repository

func (g *GraphQL) Repository(ctx context.Context, login, repo string) (*RepositoryResponse, error)

Repository fetches the typed RepositoryRepository payload for a single owner/name pair. Used by the M7 base plugin's repository fetch path. See specs/006-m7-repository-template/contracts/base-repository-query.md.

func (*GraphQL) TokenKind

func (g *GraphQL) TokenKind() TokenKind

TokenKind reports how the credential classified.

func (*GraphQL) User

func (g *GraphQL) User(ctx context.Context, login string) (*UserResponse, error)

User fetches the typed UserUser payload by login.

func (*GraphQL) UserFollowers

func (g *GraphQL) UserFollowers(ctx context.Context, login string, first int) (*UserFollowersResponse, error)

UserFollowers fetches the user's followers + following pages. Consumed by the "people" plugin.

func (*GraphQL) UserIndepth

func (g *GraphQL) UserIndepth(ctx context.Context, login string, from, to *time.Time, reposFirst int, reposAfter *string) (*UserIndepthResponse, error)

UserIndepth issues the "indepth" GraphQL query that augments the base payload with per-repository commit/issue/PR totals and the user's contribution calendar. Triggered only when at least one indepth- dependent plugin is enabled (see specs/004-m4-github-plugins/ contracts/plugin-base-extension.md §2.1).

func (*GraphQL) UserReactions

func (g *GraphQL) UserReactions(ctx context.Context, login string, issuesFirst, commentsFirst int) (*UserReactionsResponse, error)

UserReactions aggregates reaction totalCount across the user's issues and issue comments. Consumed by the "reactions" plugin.

func (*GraphQL) UserRepositories

func (g *GraphQL) UserRepositories(ctx context.Context, login string, first int, after *string) (*UserRepositoriesResponse, error)

UserRepositories returns up to `first` owner-affiliated repositories for the given login, starting after the `after` cursor (or from the beginning when after is nil). Callers thread the `pageInfo.endCursor` from one response into the next to walk the entire connection; the base plugin's repositories.go does so with a batch-halving retry strategy that mirrors upstream.

func (*GraphQL) UserStarredRepositories

func (g *GraphQL) UserStarredRepositories(ctx context.Context, login string, first int) (*UserStarredRepositoriesResponse, error)

UserStarredRepositories fetches the user's most-recently starred repositories (most-recent first). Consumed by the "stars" plugin.

type MockCall

type MockCall struct {
	Method string
	Path   string
	Header http.Header
	Body   []byte
}

MockCall records a single observed request so tests can assert interaction history after the fact.

type MockResponse

type MockResponse struct {
	Status int
	Header http.Header
	Body   []byte
}

MockResponse is the canned reply for a single route entry. Either Status or Body may be zero — defaults are 200 and `{}` respectively.

type MockTransport

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

MockTransport is the M1 minimal http.RoundTripper used by REST tests (and US5 integration tests) to feed canned responses to the github API client without hitting the network. It is intentionally tiny; the full mock infrastructure that supports recorded fixtures lands with T-118 in M9.

MockTransport routes by exact "<METHOD> <PATH>" key, falling back to "<METHOD> <PATH-prefix>*" wildcards. Unknown routes return HTTP 404 with a diagnostic body so failing tests see what was missed.

func NewMockTransport

func NewMockTransport() *MockTransport

NewMockTransport returns an empty MockTransport.

func (*MockTransport) Calls

func (m *MockTransport) Calls() []MockCall

Calls returns a snapshot of all observed requests.

func (*MockTransport) RoundTrip

func (m *MockTransport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements http.RoundTripper.

func (*MockTransport) Set

func (m *MockTransport) Set(method, path string, resp MockResponse)

Set registers a response for the given method+path tuple. Path may end with "*" to match any suffix (greedy, longest-prefix wins).

func (*MockTransport) SetJSON

func (m *MockTransport) SetJSON(method, path, body string)

SetJSON is a convenience for the common "200 OK + JSON body" route.

type OrganizationMembersOrganization

type OrganizationMembersOrganization struct {
	MembersWithRole *OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection `json:"membersWithRole"`
}

OrganizationMembersOrganization includes the requested fields of the GraphQL type Organization.

func (*OrganizationMembersOrganization) GetMembersWithRole

GetMembersWithRole returns OrganizationMembersOrganization.MembersWithRole, and is useful for accessing the field via an interface.

type OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection

type OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection struct {
	TotalCount int                                                                                    `json:"totalCount"`
	PageInfo   *OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo    `json:"pageInfo"`
	Nodes      []*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser `json:"nodes"`
}

OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection includes the requested fields of the GraphQL type OrganizationMemberConnection.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection) GetNodes

GetNodes returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection.Nodes, and is useful for accessing the field via an interface.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection) GetPageInfo

GetPageInfo returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection.PageInfo, and is useful for accessing the field via an interface.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection) GetTotalCount

GetTotalCount returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnection.TotalCount, and is useful for accessing the field via an interface.

type OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser

type OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser struct {
	Login     string  `json:"login"`
	Name      *string `json:"name"`
	AvatarUrl string  `json:"avatarUrl"`
}

OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser includes the requested fields of the GraphQL type User.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser) GetAvatarUrl

GetAvatarUrl returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser.AvatarUrl, and is useful for accessing the field via an interface.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser) GetLogin

GetLogin returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser.Login, and is useful for accessing the field via an interface.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser) GetName

GetName returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionNodesUser.Name, and is useful for accessing the field via an interface.

type OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo

type OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo struct {
	HasNextPage bool    `json:"hasNextPage"`
	EndCursor   *string `json:"endCursor"`
}

OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo) GetEndCursor

GetEndCursor returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo) GetHasNextPage

GetHasNextPage returns OrganizationMembersOrganizationMembersWithRoleOrganizationMemberConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

type OrganizationMembersResponse

type OrganizationMembersResponse struct {
	Organization *OrganizationMembersOrganization `json:"organization"`
}

OrganizationMembersResponse is returned by OrganizationMembers on success.

func OrganizationMembers

func OrganizationMembers(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	first int,
	after *string,
) (data_ *OrganizationMembersResponse, err_ error)

func (*OrganizationMembersResponse) GetOrganization

GetOrganization returns OrganizationMembersResponse.Organization, and is useful for accessing the field via an interface.

type OrganizationOrganization

type OrganizationOrganization struct {
	DatabaseId  *int      `json:"databaseId"`
	Id          string    `json:"id"`
	Login       string    `json:"login"`
	Name        *string   `json:"name"`
	Location    *string   `json:"location"`
	CreatedAt   time.Time `json:"createdAt"`
	AvatarUrl   string    `json:"avatarUrl"`
	WebsiteUrl  *string   `json:"websiteUrl"`
	Email       *string   `json:"email"`
	Description *string   `json:"description"`
}

OrganizationOrganization includes the requested fields of the GraphQL type Organization.

func (*OrganizationOrganization) GetAvatarUrl

func (v *OrganizationOrganization) GetAvatarUrl() string

GetAvatarUrl returns OrganizationOrganization.AvatarUrl, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetCreatedAt

func (v *OrganizationOrganization) GetCreatedAt() time.Time

GetCreatedAt returns OrganizationOrganization.CreatedAt, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetDatabaseId

func (v *OrganizationOrganization) GetDatabaseId() *int

GetDatabaseId returns OrganizationOrganization.DatabaseId, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetDescription

func (v *OrganizationOrganization) GetDescription() *string

GetDescription returns OrganizationOrganization.Description, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetEmail

func (v *OrganizationOrganization) GetEmail() *string

GetEmail returns OrganizationOrganization.Email, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetId

func (v *OrganizationOrganization) GetId() string

GetId returns OrganizationOrganization.Id, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetLocation

func (v *OrganizationOrganization) GetLocation() *string

GetLocation returns OrganizationOrganization.Location, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetLogin

func (v *OrganizationOrganization) GetLogin() string

GetLogin returns OrganizationOrganization.Login, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetName

func (v *OrganizationOrganization) GetName() *string

GetName returns OrganizationOrganization.Name, and is useful for accessing the field via an interface.

func (*OrganizationOrganization) GetWebsiteUrl

func (v *OrganizationOrganization) GetWebsiteUrl() *string

GetWebsiteUrl returns OrganizationOrganization.WebsiteUrl, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganization

type OrganizationRepositoriesOrganization struct {
	Repositories *OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection `json:"repositories"`
}

OrganizationRepositoriesOrganization includes the requested fields of the GraphQL type Organization.

func (*OrganizationRepositoriesOrganization) GetRepositories

GetRepositories returns OrganizationRepositoriesOrganization.Repositories, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection struct {
	TotalCount int                                                                                    `json:"totalCount"`
	PageInfo   *OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo          `json:"pageInfo"`
	Nodes      []*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository `json:"nodes"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection) GetNodes

GetNodes returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection.Nodes, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection) GetPageInfo

GetPageInfo returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection.PageInfo, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection) GetTotalCount

GetTotalCount returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnection.TotalCount, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository struct {
	DatabaseId      *int                                                                                                            `json:"databaseId"`
	Id              string                                                                                                          `json:"id"`
	Name            string                                                                                                          `json:"name"`
	NameWithOwner   string                                                                                                          `json:"nameWithOwner"`
	Description     *string                                                                                                         `json:"description"`
	Url             string                                                                                                          `json:"url"`
	IsPrivate       bool                                                                                                            `json:"isPrivate"`
	IsFork          bool                                                                                                            `json:"isFork"`
	PushedAt        *time.Time                                                                                                      `json:"pushedAt"`
	UpdatedAt       *time.Time                                                                                                      `json:"updatedAt"`
	StargazerCount  int                                                                                                             `json:"stargazerCount"`
	ForkCount       int                                                                                                             `json:"forkCount"`
	Watchers        *OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection   `json:"watchers"`
	PrimaryLanguage *OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage             `json:"primaryLanguage"`
	Languages       *OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection `json:"languages"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository includes the requested fields of the GraphQL type Repository.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetDatabaseId

GetDatabaseId returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.DatabaseId, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetDescription

GetDescription returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.Description, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetForkCount

GetForkCount returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.ForkCount, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetId

GetId returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.Id, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetIsFork

GetIsFork returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.IsFork, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetIsPrivate

GetIsPrivate returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.IsPrivate, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetLanguages

GetLanguages returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.Languages, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetName

GetName returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.Name, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetNameWithOwner

GetNameWithOwner returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.NameWithOwner, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetPrimaryLanguage

GetPrimaryLanguage returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.PrimaryLanguage, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetPushedAt

GetPushedAt returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.PushedAt, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetStargazerCount

GetStargazerCount returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.StargazerCount, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetUpdatedAt

GetUpdatedAt returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.UpdatedAt, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetUrl

GetUrl returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.Url, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository) GetWatchers

GetWatchers returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepository.Watchers, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection struct {
	TotalCount int                                                                                                                                `json:"totalCount"`
	TotalSize  int                                                                                                                                `json:"totalSize"`
	Edges      []*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge `json:"edges"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection includes the requested fields of the GraphQL type LanguageConnection.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection) GetEdges

GetEdges returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection.Edges, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection) GetTotalCount

GetTotalCount returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection.TotalCount, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection) GetTotalSize

GetTotalSize returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection.TotalSize, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge struct {
	Size int                                                                                                                                          `json:"size"`
	Node *OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage `json:"node"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge includes the requested fields of the GraphQL type LanguageEdge.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge) GetNode

GetNode returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge.Node, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge) GetSize

GetSize returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge.Size, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage struct {
	Name  string  `json:"name"`
	Color *string `json:"color"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage includes the requested fields of the GraphQL type Language.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage) GetColor

GetColor returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage.Color, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage) GetName

GetName returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage.Name, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage struct {
	Name  string  `json:"name"`
	Color *string `json:"color"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage includes the requested fields of the GraphQL type Language.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage) GetColor

GetColor returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage.Color, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage) GetName

GetName returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage.Name, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection struct {
	TotalCount int `json:"totalCount"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection includes the requested fields of the GraphQL type WatcherConnection.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection) GetTotalCount

GetTotalCount returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection.TotalCount, and is useful for accessing the field via an interface.

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo

type OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo struct {
	HasNextPage bool    `json:"hasNextPage"`
	EndCursor   *string `json:"endCursor"`
}

OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo) GetEndCursor

GetEndCursor returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo) GetHasNextPage

GetHasNextPage returns OrganizationRepositoriesOrganizationRepositoriesRepositoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

type OrganizationRepositoriesResponse

type OrganizationRepositoriesResponse struct {
	Organization *OrganizationRepositoriesOrganization `json:"organization"`
}

OrganizationRepositoriesResponse is returned by OrganizationRepositories on success.

func OrganizationRepositories

func OrganizationRepositories(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	first int,
	after *string,
) (data_ *OrganizationRepositoriesResponse, err_ error)

func (*OrganizationRepositoriesResponse) GetOrganization

GetOrganization returns OrganizationRepositoriesResponse.Organization, and is useful for accessing the field via an interface.

type OrganizationResponse

type OrganizationResponse struct {
	Organization *OrganizationOrganization `json:"organization"`
}

OrganizationResponse is returned by Organization on success.

func Organization

func Organization(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
) (data_ *OrganizationResponse, err_ error)

func (*OrganizationResponse) GetOrganization

func (v *OrganizationResponse) GetOrganization() *OrganizationOrganization

GetOrganization returns OrganizationResponse.Organization, and is useful for accessing the field via an interface.

type Quota

type Quota struct {
	Limit     int       `json:"limit"`
	Used      int       `json:"used"`
	Remaining int       `json:"remaining"`
	Reset     time.Time `json:"reset"`
}

Quota is the per-bucket rate counter; the JSON tags mirror upstream.

func (*Quota) UnmarshalJSON

func (q *Quota) UnmarshalJSON(b []byte) error

UnmarshalJSON accepts the integer epoch seconds that GitHub returns for "reset" and folds it into time.Time.

type REST

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

REST wraps the httpx.Client with GitHub REST helpers. It is safe for concurrent use; the underlying transport stays alive for the life of the process.

func NewREST

func NewREST(token config.Token, customBaseURL string, opts httpx.Options) (*REST, error)

NewREST constructs a REST client. The token kind is classified up-front so callers can branch on it; an empty / fine-grained / junk token returns the typed *InputError defined by ValidateToken.

When TokenKind == TokenMocked the transport is wrapped by [newMockedGuard] so requests to real GitHub hosts panic loudly (FR-017).

func (*REST) BaseURL

func (r *REST) BaseURL() string

BaseURL returns the configured base URL.

func (*REST) Delete

func (r *REST) Delete(ctx context.Context, path string, extra http.Header) ([]byte, *http.Response, error)

Delete issues an authenticated DELETE. No body. Used by the M6 committer for `DELETE /git/refs/heads/<branch>` (PR head branch cleanup, Phase 4).

func (*REST) Get

func (r *REST) Get(ctx context.Context, path string, extra http.Header) ([]byte, *http.Response, error)

Get issues an authenticated GET to path (which MUST start with "/") and returns the raw body + response. The default GitHub Accept / Authorization headers attached at construction time are sent on every request; callers can layer additional headers via the second argument.

Used by plugins that need an arbitrary REST endpoint that hasn't earned a dedicated typed helper yet (activity events, habits commit diffs, traffic counters, ...). On non-2xx status the response is still returned alongside the body so callers can inspect status code + headers; a transport-level error returns (nil, nil, err).

func (*REST) HTTPClient

func (r *REST) HTTPClient() *http.Client

HTTPClient exposes the underlying retry-enabled http.Client.

func (*REST) HeadRoot

func (r *REST) HeadRoot(ctx context.Context) (*http.Response, error)

HeadRoot inspects the root endpoint primarily to read X-OAuth-Scopes during token validation (T-108 in M6).

func (*REST) Post

func (r *REST) Post(ctx context.Context, path string, body []byte, extra http.Header) ([]byte, *http.Response, error)

Post issues an authenticated POST with the given JSON body. Used by the M6 committer for `POST /repos/.../pulls` (PR creation, Phase 4).

func (*REST) Put

func (r *REST) Put(ctx context.Context, path string, body []byte, extra http.Header) ([]byte, *http.Response, error)

Put issues an authenticated PUT with the given JSON body. Mirrors Get's response surface (body + http.Response + transport error). Used by the M6 committer for `PUT /repos/.../contents/<filename>` (content commits) and `PUT /git/refs` (branch creation).

func (*REST) RateLimit

func (r *REST) RateLimit(ctx context.Context) (*RateLimitResponse, error)

RateLimit queries /rate_limit and returns the decoded payload.

func (*REST) Scopes

func (r *REST) Scopes(ctx context.Context) ([]string, error)

Scopes returns the OAuth scopes granted to the configured token, as reported by the GitHub API's X-OAuth-Scopes response header on a `GET /` request.

The first call issues the HTTP probe and caches the result; subsequent calls return the cached slice without re-hitting the network. An empty slice (with nil error) means the token has no scopes — either the response carried no X-OAuth-Scopes header, or the request itself was unauthenticated (HTTP 401, which GitHub returns for a missing or rejected token). Plugins that gate behavior on a particular scope (projects, sponsors, traffic) can therefore call this helper without worrying about request amplification — they Skip on the empty slice regardless of whether the token was missing or merely under-scoped.

On HTTP-level failure (transport error, 5xx, or any other non-{2xx, 401} status), the error is surfaced verbatim and nothing is cached so callers can retry on the next request. Data-model contract anchor: specs/004-m4-github-plugins/data-model.md#E-050.

func (*REST) TokenKind

func (r *REST) TokenKind() TokenKind

TokenKind reports how the credential was classified.

type RateLimitResponse

type RateLimitResponse struct {
	Resources struct {
		Core    Quota `json:"core"`
		GraphQL Quota `json:"graphql"`
		Search  Quota `json:"search"`
	} `json:"resources"`
	Rate Quota `json:"rate"`
}

RateLimitResponse mirrors the upstream /rate_limit payload (only the fields the project consumes).

type RepositoryRepository

type RepositoryRepository struct {
	DatabaseId       *int                                                   `json:"databaseId"`
	Name             string                                                 `json:"name"`
	NameWithOwner    string                                                 `json:"nameWithOwner"`
	Description      *string                                                `json:"description"`
	StargazerCount   int                                                    `json:"stargazerCount"`
	ForkCount        int                                                    `json:"forkCount"`
	IsArchived       bool                                                   `json:"isArchived"`
	PrimaryLanguage  *RepositoryRepositoryPrimaryLanguage                   `json:"primaryLanguage"`
	LicenseInfo      *RepositoryRepositoryLicenseInfoLicense                `json:"licenseInfo"`
	DefaultBranchRef *RepositoryRepositoryDefaultBranchRef                  `json:"defaultBranchRef"`
	Owner            RepositoryRepositoryOwner                              `json:"-"`
	Issues           *RepositoryRepositoryIssuesIssueConnection             `json:"issues"`
	PullRequests     *RepositoryRepositoryPullRequestsPullRequestConnection `json:"pullRequests"`
}

RepositoryRepository includes the requested fields of the GraphQL type Repository.

func (*RepositoryRepository) GetDatabaseId

func (v *RepositoryRepository) GetDatabaseId() *int

GetDatabaseId returns RepositoryRepository.DatabaseId, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetDefaultBranchRef

GetDefaultBranchRef returns RepositoryRepository.DefaultBranchRef, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetDescription

func (v *RepositoryRepository) GetDescription() *string

GetDescription returns RepositoryRepository.Description, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetForkCount

func (v *RepositoryRepository) GetForkCount() int

GetForkCount returns RepositoryRepository.ForkCount, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetIsArchived

func (v *RepositoryRepository) GetIsArchived() bool

GetIsArchived returns RepositoryRepository.IsArchived, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetIssues

GetIssues returns RepositoryRepository.Issues, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetLicenseInfo

GetLicenseInfo returns RepositoryRepository.LicenseInfo, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetName

func (v *RepositoryRepository) GetName() string

GetName returns RepositoryRepository.Name, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetNameWithOwner

func (v *RepositoryRepository) GetNameWithOwner() string

GetNameWithOwner returns RepositoryRepository.NameWithOwner, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetOwner

GetOwner returns RepositoryRepository.Owner, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetPrimaryLanguage

GetPrimaryLanguage returns RepositoryRepository.PrimaryLanguage, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetPullRequests

GetPullRequests returns RepositoryRepository.PullRequests, and is useful for accessing the field via an interface.

func (*RepositoryRepository) GetStargazerCount

func (v *RepositoryRepository) GetStargazerCount() int

GetStargazerCount returns RepositoryRepository.StargazerCount, and is useful for accessing the field via an interface.

func (*RepositoryRepository) MarshalJSON

func (v *RepositoryRepository) MarshalJSON() ([]byte, error)

func (*RepositoryRepository) UnmarshalJSON

func (v *RepositoryRepository) UnmarshalJSON(b []byte) error

type RepositoryRepositoryDefaultBranchRef

type RepositoryRepositoryDefaultBranchRef struct {
	Name string `json:"name"`
}

RepositoryRepositoryDefaultBranchRef includes the requested fields of the GraphQL type Ref.

func (*RepositoryRepositoryDefaultBranchRef) GetName

GetName returns RepositoryRepositoryDefaultBranchRef.Name, and is useful for accessing the field via an interface.

type RepositoryRepositoryIssuesIssueConnection

type RepositoryRepositoryIssuesIssueConnection struct {
	TotalCount int `json:"totalCount"`
}

RepositoryRepositoryIssuesIssueConnection includes the requested fields of the GraphQL type IssueConnection.

func (*RepositoryRepositoryIssuesIssueConnection) GetTotalCount

GetTotalCount returns RepositoryRepositoryIssuesIssueConnection.TotalCount, and is useful for accessing the field via an interface.

type RepositoryRepositoryLicenseInfoLicense

type RepositoryRepositoryLicenseInfoLicense struct {
	Name   string  `json:"name"`
	SpdxId *string `json:"spdxId"`
}

RepositoryRepositoryLicenseInfoLicense includes the requested fields of the GraphQL type License.

func (*RepositoryRepositoryLicenseInfoLicense) GetName

GetName returns RepositoryRepositoryLicenseInfoLicense.Name, and is useful for accessing the field via an interface.

func (*RepositoryRepositoryLicenseInfoLicense) GetSpdxId

GetSpdxId returns RepositoryRepositoryLicenseInfoLicense.SpdxId, and is useful for accessing the field via an interface.

type RepositoryRepositoryOwner

type RepositoryRepositoryOwner interface {

	// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
	GetTypename() *string
	// GetLogin returns the interface-field "login" from its implementation.
	GetLogin() string
	// GetAvatarUrl returns the interface-field "avatarUrl" from its implementation.
	GetAvatarUrl() string
	// contains filtered or unexported methods
}

RepositoryRepositoryOwner includes the requested fields of the GraphQL interface RepositoryOwner.

RepositoryRepositoryOwner is implemented by the following types: RepositoryRepositoryOwnerOrganization RepositoryRepositoryOwnerUser

type RepositoryRepositoryOwnerOrganization

type RepositoryRepositoryOwnerOrganization struct {
	Typename  *string `json:"__typename"`
	Login     string  `json:"login"`
	AvatarUrl string  `json:"avatarUrl"`
}

RepositoryRepositoryOwnerOrganization includes the requested fields of the GraphQL type Organization.

func (*RepositoryRepositoryOwnerOrganization) GetAvatarUrl

GetAvatarUrl returns RepositoryRepositoryOwnerOrganization.AvatarUrl, and is useful for accessing the field via an interface.

func (*RepositoryRepositoryOwnerOrganization) GetLogin

GetLogin returns RepositoryRepositoryOwnerOrganization.Login, and is useful for accessing the field via an interface.

func (*RepositoryRepositoryOwnerOrganization) GetTypename

GetTypename returns RepositoryRepositoryOwnerOrganization.Typename, and is useful for accessing the field via an interface.

type RepositoryRepositoryOwnerUser

type RepositoryRepositoryOwnerUser struct {
	Typename  *string `json:"__typename"`
	Login     string  `json:"login"`
	AvatarUrl string  `json:"avatarUrl"`
}

RepositoryRepositoryOwnerUser includes the requested fields of the GraphQL type User.

func (*RepositoryRepositoryOwnerUser) GetAvatarUrl

func (v *RepositoryRepositoryOwnerUser) GetAvatarUrl() string

GetAvatarUrl returns RepositoryRepositoryOwnerUser.AvatarUrl, and is useful for accessing the field via an interface.

func (*RepositoryRepositoryOwnerUser) GetLogin

func (v *RepositoryRepositoryOwnerUser) GetLogin() string

GetLogin returns RepositoryRepositoryOwnerUser.Login, and is useful for accessing the field via an interface.

func (*RepositoryRepositoryOwnerUser) GetTypename

func (v *RepositoryRepositoryOwnerUser) GetTypename() *string

GetTypename returns RepositoryRepositoryOwnerUser.Typename, and is useful for accessing the field via an interface.

type RepositoryRepositoryPrimaryLanguage

type RepositoryRepositoryPrimaryLanguage struct {
	Name  string  `json:"name"`
	Color *string `json:"color"`
}

RepositoryRepositoryPrimaryLanguage includes the requested fields of the GraphQL type Language.

func (*RepositoryRepositoryPrimaryLanguage) GetColor

GetColor returns RepositoryRepositoryPrimaryLanguage.Color, and is useful for accessing the field via an interface.

func (*RepositoryRepositoryPrimaryLanguage) GetName

GetName returns RepositoryRepositoryPrimaryLanguage.Name, and is useful for accessing the field via an interface.

type RepositoryRepositoryPullRequestsPullRequestConnection

type RepositoryRepositoryPullRequestsPullRequestConnection struct {
	TotalCount int `json:"totalCount"`
}

RepositoryRepositoryPullRequestsPullRequestConnection includes the requested fields of the GraphQL type PullRequestConnection.

func (*RepositoryRepositoryPullRequestsPullRequestConnection) GetTotalCount

GetTotalCount returns RepositoryRepositoryPullRequestsPullRequestConnection.TotalCount, and is useful for accessing the field via an interface.

type RepositoryResponse

type RepositoryResponse struct {
	Repository *RepositoryRepository `json:"repository"`
}

RepositoryResponse is returned by Repository on success.

func Repository

func Repository(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	repo string,
) (data_ *RepositoryResponse, err_ error)

Query: single repository for the M7 `repository` template.

Returns the union of fields the template's partials need to render the "repo identity + community + activity" panes. REST fallback fields (contributors count, recent commits) live in `internal/plugins/base/repository.go` and are NOT fetched here.

Spec: specs/006-m7-repository-template/contracts/base-repository-query.md

func (*RepositoryResponse) GetRepository

func (v *RepositoryResponse) GetRepository() *RepositoryRepository

GetRepository returns RepositoryResponse.Repository, and is useful for accessing the field via an interface.

type Resources

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

Resources is the concurrent-safe holder for the three GitHub API rate buckets (data-model E-008). The zero value is ready to use; call Resources.Refresh to populate from a live or mocked /rate_limit.

func NewResources

func NewResources() *Resources

NewResources returns a Resources with zero-value Quotas.

func (*Resources) Refresh

func (r *Resources) Refresh(ctx context.Context, c *REST) error

Refresh queries /rate_limit and atomically updates every bucket. On failure the previous values are retained and the error is returned unmodified so callers can decide whether to retry.

func (*Resources) Snapshot

func (r *Resources) Snapshot() ResourcesSnapshot

Snapshot returns a read-only copy of the current quota values. Returned Quotas are value types, so the caller cannot mutate the holder's internal state through them.

type ResourcesSnapshot

type ResourcesSnapshot struct {
	REST    Quota
	GraphQL Quota
	Search  Quota
}

ResourcesSnapshot is a value-type view of the three quotas at a point in time, used by callers that only need to read.

type TokenKind

type TokenKind int

TokenKind enumerates the credential shapes the project recognizes. See contracts/github-api.md §2.1 for the mapping rules.

const (
	// TokenUnknown is returned for empty or unrecognized credentials.
	// Callers must treat it as a hard input error.
	TokenUnknown TokenKind = iota
	// TokenClassic covers the canonical "classic" personal access
	// tokens (ghp_, gho_, ghu_, ghs_, ghr_).
	TokenClassic
	// TokenFineGrained matches GitHub's newer fine-grained PATs. We
	// reject these early because upstream behavior depends on classic
	// scopes that fine-grained tokens cannot replicate yet.
	TokenFineGrained
	// TokenNone is the explicit "no token" sentinel for offline /
	// public-only runs.
	TokenNone
	// TokenMocked is the sentinel test helpers use to wire a fake
	// transport. mockedGuardRoundTripper panics on real GitHub
	// hostnames when this kind is active (FR-017).
	TokenMocked
)

func ClassifyToken

func ClassifyToken(raw string) TokenKind

ClassifyToken inspects raw and returns the TokenKind it belongs to. An empty string yields TokenUnknown so callers can branch on it the same way as on a malformed value.

func (TokenKind) String

func (k TokenKind) String() string

String returns a stable human-readable label for logging.

type UserFollowersResponse

type UserFollowersResponse struct {
	User *UserFollowersUser `json:"user"`
}

UserFollowersResponse is returned by UserFollowers on success.

func UserFollowers

func UserFollowers(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	first int,
) (data_ *UserFollowersResponse, err_ error)

func (*UserFollowersResponse) GetUser

GetUser returns UserFollowersResponse.User, and is useful for accessing the field via an interface.

type UserFollowersUser

type UserFollowersUser struct {
	Followers *UserFollowersUserFollowersUserConnection `json:"followers"`
	Following *UserFollowersUserFollowingUserConnection `json:"following"`
}

UserFollowersUser includes the requested fields of the GraphQL type User.

func (*UserFollowersUser) GetFollowers

GetFollowers returns UserFollowersUser.Followers, and is useful for accessing the field via an interface.

func (*UserFollowersUser) GetFollowing

GetFollowing returns UserFollowersUser.Following, and is useful for accessing the field via an interface.

type UserFollowersUserFollowersUserConnection

type UserFollowersUserFollowersUserConnection struct {
	TotalCount int                                                  `json:"totalCount"`
	Nodes      []*UserFollowersUserFollowersUserConnectionNodesUser `json:"nodes"`
}

UserFollowersUserFollowersUserConnection includes the requested fields of the GraphQL type UserConnection.

func (*UserFollowersUserFollowersUserConnection) GetNodes

GetNodes returns UserFollowersUserFollowersUserConnection.Nodes, and is useful for accessing the field via an interface.

func (*UserFollowersUserFollowersUserConnection) GetTotalCount

func (v *UserFollowersUserFollowersUserConnection) GetTotalCount() int

GetTotalCount returns UserFollowersUserFollowersUserConnection.TotalCount, and is useful for accessing the field via an interface.

type UserFollowersUserFollowersUserConnectionNodesUser

type UserFollowersUserFollowersUserConnectionNodesUser struct {
	Login     string  `json:"login"`
	Name      *string `json:"name"`
	AvatarUrl string  `json:"avatarUrl"`
}

UserFollowersUserFollowersUserConnectionNodesUser includes the requested fields of the GraphQL type User.

func (*UserFollowersUserFollowersUserConnectionNodesUser) GetAvatarUrl

GetAvatarUrl returns UserFollowersUserFollowersUserConnectionNodesUser.AvatarUrl, and is useful for accessing the field via an interface.

func (*UserFollowersUserFollowersUserConnectionNodesUser) GetLogin

GetLogin returns UserFollowersUserFollowersUserConnectionNodesUser.Login, and is useful for accessing the field via an interface.

func (*UserFollowersUserFollowersUserConnectionNodesUser) GetName

GetName returns UserFollowersUserFollowersUserConnectionNodesUser.Name, and is useful for accessing the field via an interface.

type UserFollowersUserFollowingUserConnection

type UserFollowersUserFollowingUserConnection struct {
	TotalCount int                                                  `json:"totalCount"`
	Nodes      []*UserFollowersUserFollowingUserConnectionNodesUser `json:"nodes"`
}

UserFollowersUserFollowingUserConnection includes the requested fields of the GraphQL type UserConnection.

func (*UserFollowersUserFollowingUserConnection) GetNodes

GetNodes returns UserFollowersUserFollowingUserConnection.Nodes, and is useful for accessing the field via an interface.

func (*UserFollowersUserFollowingUserConnection) GetTotalCount

func (v *UserFollowersUserFollowingUserConnection) GetTotalCount() int

GetTotalCount returns UserFollowersUserFollowingUserConnection.TotalCount, and is useful for accessing the field via an interface.

type UserFollowersUserFollowingUserConnectionNodesUser

type UserFollowersUserFollowingUserConnectionNodesUser struct {
	Login     string  `json:"login"`
	Name      *string `json:"name"`
	AvatarUrl string  `json:"avatarUrl"`
}

UserFollowersUserFollowingUserConnectionNodesUser includes the requested fields of the GraphQL type User.

func (*UserFollowersUserFollowingUserConnectionNodesUser) GetAvatarUrl

GetAvatarUrl returns UserFollowersUserFollowingUserConnectionNodesUser.AvatarUrl, and is useful for accessing the field via an interface.

func (*UserFollowersUserFollowingUserConnectionNodesUser) GetLogin

GetLogin returns UserFollowersUserFollowingUserConnectionNodesUser.Login, and is useful for accessing the field via an interface.

func (*UserFollowersUserFollowingUserConnectionNodesUser) GetName

GetName returns UserFollowersUserFollowingUserConnectionNodesUser.Name, and is useful for accessing the field via an interface.

type UserIndepthResponse

type UserIndepthResponse struct {
	User *UserIndepthUser `json:"user"`
}

UserIndepthResponse is returned by UserIndepth on success.

func UserIndepth

func UserIndepth(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	from *time.Time,
	to *time.Time,
	reposFirst int,
	reposAfter *string,
) (data_ *UserIndepthResponse, err_ error)

func (*UserIndepthResponse) GetUser

func (v *UserIndepthResponse) GetUser() *UserIndepthUser

GetUser returns UserIndepthResponse.User, and is useful for accessing the field via an interface.

type UserIndepthUser

type UserIndepthUser struct {
	ContributionsCollection *UserIndepthUserContributionsCollection          `json:"contributionsCollection"`
	Repositories            *UserIndepthUserRepositoriesRepositoryConnection `json:"repositories"`
}

UserIndepthUser includes the requested fields of the GraphQL type User.

func (*UserIndepthUser) GetContributionsCollection

func (v *UserIndepthUser) GetContributionsCollection() *UserIndepthUserContributionsCollection

GetContributionsCollection returns UserIndepthUser.ContributionsCollection, and is useful for accessing the field via an interface.

func (*UserIndepthUser) GetRepositories

GetRepositories returns UserIndepthUser.Repositories, and is useful for accessing the field via an interface.

type UserIndepthUserContributionsCollection

type UserIndepthUserContributionsCollection struct {
	ContributionCalendar *UserIndepthUserContributionsCollectionContributionCalendar `json:"contributionCalendar"`
}

UserIndepthUserContributionsCollection includes the requested fields of the GraphQL type ContributionsCollection.

func (*UserIndepthUserContributionsCollection) GetContributionCalendar

GetContributionCalendar returns UserIndepthUserContributionsCollection.ContributionCalendar, and is useful for accessing the field via an interface.

type UserIndepthUserContributionsCollectionContributionCalendar

type UserIndepthUserContributionsCollectionContributionCalendar struct {
	TotalContributions int                                                                                        `json:"totalContributions"`
	Weeks              []*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek `json:"weeks"`
}

UserIndepthUserContributionsCollectionContributionCalendar includes the requested fields of the GraphQL type ContributionCalendar.

func (*UserIndepthUserContributionsCollectionContributionCalendar) GetTotalContributions

GetTotalContributions returns UserIndepthUserContributionsCollectionContributionCalendar.TotalContributions, and is useful for accessing the field via an interface.

func (*UserIndepthUserContributionsCollectionContributionCalendar) GetWeeks

GetWeeks returns UserIndepthUserContributionsCollectionContributionCalendar.Weeks, and is useful for accessing the field via an interface.

type UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek

type UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek struct {
	FirstDay         string                                                                                                                            `json:"firstDay"`
	ContributionDays []*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay `json:"contributionDays"`
}

UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek includes the requested fields of the GraphQL type ContributionCalendarWeek.

func (*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek) GetContributionDays

GetContributionDays returns UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek.ContributionDays, and is useful for accessing the field via an interface.

func (*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek) GetFirstDay

GetFirstDay returns UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeek.FirstDay, and is useful for accessing the field via an interface.

type UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay

type UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay struct {
	Date              string `json:"date"`
	ContributionCount int    `json:"contributionCount"`
	Weekday           int    `json:"weekday"`
	Color             string `json:"color"`
}

UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay includes the requested fields of the GraphQL type ContributionCalendarDay.

func (*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay) GetColor

GetColor returns UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay.Color, and is useful for accessing the field via an interface.

func (*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay) GetContributionCount

GetContributionCount returns UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay.ContributionCount, and is useful for accessing the field via an interface.

func (*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay) GetDate

GetDate returns UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay.Date, and is useful for accessing the field via an interface.

func (*UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay) GetWeekday

GetWeekday returns UserIndepthUserContributionsCollectionContributionCalendarWeeksContributionCalendarWeekContributionDaysContributionCalendarDay.Weekday, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnection

type UserIndepthUserRepositoriesRepositoryConnection struct {
	TotalCount int                                                               `json:"totalCount"`
	PageInfo   *UserIndepthUserRepositoriesRepositoryConnectionPageInfo          `json:"pageInfo"`
	Nodes      []*UserIndepthUserRepositoriesRepositoryConnectionNodesRepository `json:"nodes"`
}

UserIndepthUserRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection.

func (*UserIndepthUserRepositoriesRepositoryConnection) GetNodes

GetNodes returns UserIndepthUserRepositoriesRepositoryConnection.Nodes, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnection) GetPageInfo

GetPageInfo returns UserIndepthUserRepositoriesRepositoryConnection.PageInfo, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnection) GetTotalCount

GetTotalCount returns UserIndepthUserRepositoriesRepositoryConnection.TotalCount, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepository

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepository struct {
	NameWithOwner    string                                                                                           `json:"nameWithOwner"`
	DefaultBranchRef *UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef                  `json:"defaultBranchRef"`
	Issues           *UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryIssuesIssueConnection             `json:"issues"`
	PullRequests     *UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryPullRequestsPullRequestConnection `json:"pullRequests"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepository includes the requested fields of the GraphQL type Repository.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepository) GetDefaultBranchRef

GetDefaultBranchRef returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepository.DefaultBranchRef, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepository) GetIssues

GetIssues returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepository.Issues, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepository) GetNameWithOwner

GetNameWithOwner returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepository.NameWithOwner, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepository) GetPullRequests

GetPullRequests returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepository.PullRequests, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef struct {
	Target *UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetGitObject `json:"-"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef includes the requested fields of the GraphQL type Ref.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef) GetTarget

GetTarget returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef.Target, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef) MarshalJSON

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRef) UnmarshalJSON

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetBlob

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetBlob struct {
	Typename *string `json:"__typename"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetBlob includes the requested fields of the GraphQL type Blob.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetBlob) GetTypename

GetTypename returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetBlob.Typename, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit struct {
	Typename *string                                                                                                                   `json:"__typename"`
	History  *UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommitHistoryCommitHistoryConnection `json:"history"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit includes the requested fields of the GraphQL type Commit.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit) GetHistory

GetHistory returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit.History, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit) GetTypename

GetTypename returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit.Typename, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommitHistoryCommitHistoryConnection

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommitHistoryCommitHistoryConnection struct {
	TotalCount int `json:"totalCount"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommitHistoryCommitHistoryConnection includes the requested fields of the GraphQL type CommitHistoryConnection.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommitHistoryCommitHistoryConnection) GetTotalCount

GetTotalCount returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommitHistoryCommitHistoryConnection.TotalCount, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetGitObject

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetGitObject interface {

	// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
	GetTypename() *string
	// contains filtered or unexported methods
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetGitObject includes the requested fields of the GraphQL interface GitObject.

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetGitObject is implemented by the following types: UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetBlob UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetCommit UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTag UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTree

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTag

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTag struct {
	Typename *string `json:"__typename"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTag includes the requested fields of the GraphQL type Tag.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTag) GetTypename

GetTypename returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTag.Typename, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTree

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTree struct {
	Typename *string `json:"__typename"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTree includes the requested fields of the GraphQL type Tree.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTree) GetTypename

GetTypename returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryDefaultBranchRefTargetTree.Typename, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryIssuesIssueConnection

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryIssuesIssueConnection struct {
	TotalCount int `json:"totalCount"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryIssuesIssueConnection includes the requested fields of the GraphQL type IssueConnection.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryIssuesIssueConnection) GetTotalCount

GetTotalCount returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryIssuesIssueConnection.TotalCount, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryPullRequestsPullRequestConnection

type UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryPullRequestsPullRequestConnection struct {
	TotalCount int `json:"totalCount"`
}

UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryPullRequestsPullRequestConnection includes the requested fields of the GraphQL type PullRequestConnection.

func (*UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryPullRequestsPullRequestConnection) GetTotalCount

GetTotalCount returns UserIndepthUserRepositoriesRepositoryConnectionNodesRepositoryPullRequestsPullRequestConnection.TotalCount, and is useful for accessing the field via an interface.

type UserIndepthUserRepositoriesRepositoryConnectionPageInfo

type UserIndepthUserRepositoriesRepositoryConnectionPageInfo struct {
	HasNextPage bool    `json:"hasNextPage"`
	EndCursor   *string `json:"endCursor"`
}

UserIndepthUserRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*UserIndepthUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor

GetEndCursor returns UserIndepthUserRepositoriesRepositoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*UserIndepthUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage

GetHasNextPage returns UserIndepthUserRepositoriesRepositoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

type UserReactionsResponse

type UserReactionsResponse struct {
	User *UserReactionsUser `json:"user"`
}

UserReactionsResponse is returned by UserReactions on success.

func UserReactions

func UserReactions(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	issuesFirst int,
	commentsFirst int,
) (data_ *UserReactionsResponse, err_ error)

func (*UserReactionsResponse) GetUser

GetUser returns UserReactionsResponse.User, and is useful for accessing the field via an interface.

type UserReactionsUser

type UserReactionsUser struct {
	Issues        *UserReactionsUserIssuesIssueConnectionWithReactions  `json:"issues"`
	IssueComments *UserReactionsUserIssueCommentsIssueCommentConnection `json:"issueComments"`
}

UserReactionsUser includes the requested fields of the GraphQL type User.

func (*UserReactionsUser) GetIssueComments

GetIssueComments returns UserReactionsUser.IssueComments, and is useful for accessing the field via an interface.

func (*UserReactionsUser) GetIssues

GetIssues returns UserReactionsUser.Issues, and is useful for accessing the field via an interface.

type UserReactionsUserIssueCommentsIssueCommentConnection

type UserReactionsUserIssueCommentsIssueCommentConnection struct {
	TotalCount int                                                                                   `json:"totalCount"`
	Nodes      []*UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactions `json:"nodes"`
}

UserReactionsUserIssueCommentsIssueCommentConnection includes the requested fields of the GraphQL type IssueCommentConnection.

func (*UserReactionsUserIssueCommentsIssueCommentConnection) GetNodes

GetNodes returns UserReactionsUserIssueCommentsIssueCommentConnection.Nodes, and is useful for accessing the field via an interface.

func (*UserReactionsUserIssueCommentsIssueCommentConnection) GetTotalCount

GetTotalCount returns UserReactionsUserIssueCommentsIssueCommentConnection.TotalCount, and is useful for accessing the field via an interface.

type UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactions

type UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactions struct {
	Reactions *UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactionsReactionsReactionConnection `json:"reactions"`
}

UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactions includes the requested fields of the GraphQL type IssueCommentWithReactions.

func (*UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactions) GetReactions

GetReactions returns UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactions.Reactions, and is useful for accessing the field via an interface.

type UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactionsReactionsReactionConnection

type UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactionsReactionsReactionConnection struct {
	TotalCount int `json:"totalCount"`
}

UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactionsReactionsReactionConnection includes the requested fields of the GraphQL type ReactionConnection.

func (*UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactionsReactionsReactionConnection) GetTotalCount

GetTotalCount returns UserReactionsUserIssueCommentsIssueCommentConnectionNodesIssueCommentWithReactionsReactionsReactionConnection.TotalCount, and is useful for accessing the field via an interface.

type UserReactionsUserIssuesIssueConnectionWithReactions

type UserReactionsUserIssuesIssueConnectionWithReactions struct {
	TotalCount int                                                                           `json:"totalCount"`
	Nodes      []*UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactions `json:"nodes"`
}

UserReactionsUserIssuesIssueConnectionWithReactions includes the requested fields of the GraphQL type IssueConnectionWithReactions.

func (*UserReactionsUserIssuesIssueConnectionWithReactions) GetNodes

GetNodes returns UserReactionsUserIssuesIssueConnectionWithReactions.Nodes, and is useful for accessing the field via an interface.

func (*UserReactionsUserIssuesIssueConnectionWithReactions) GetTotalCount

GetTotalCount returns UserReactionsUserIssuesIssueConnectionWithReactions.TotalCount, and is useful for accessing the field via an interface.

type UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactions

type UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactions struct {
	Reactions *UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactionsReactionsReactionConnection `json:"reactions"`
}

UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactions includes the requested fields of the GraphQL type IssueWithReactions.

func (*UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactions) GetReactions

GetReactions returns UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactions.Reactions, and is useful for accessing the field via an interface.

type UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactionsReactionsReactionConnection

type UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactionsReactionsReactionConnection struct {
	TotalCount int `json:"totalCount"`
}

UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactionsReactionsReactionConnection includes the requested fields of the GraphQL type ReactionConnection.

func (*UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactionsReactionsReactionConnection) GetTotalCount

GetTotalCount returns UserReactionsUserIssuesIssueConnectionWithReactionsNodesIssueWithReactionsReactionsReactionConnection.TotalCount, and is useful for accessing the field via an interface.

type UserRepositoriesResponse

type UserRepositoriesResponse struct {
	User *UserRepositoriesUser `json:"user"`
}

UserRepositoriesResponse is returned by UserRepositories on success.

func UserRepositories

func UserRepositories(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	first int,
	after *string,
) (data_ *UserRepositoriesResponse, err_ error)

func (*UserRepositoriesResponse) GetUser

GetUser returns UserRepositoriesResponse.User, and is useful for accessing the field via an interface.

type UserRepositoriesUser

type UserRepositoriesUser struct {
	Repositories *UserRepositoriesUserRepositoriesRepositoryConnection `json:"repositories"`
}

UserRepositoriesUser includes the requested fields of the GraphQL type User.

func (*UserRepositoriesUser) GetRepositories

GetRepositories returns UserRepositoriesUser.Repositories, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnection

type UserRepositoriesUserRepositoriesRepositoryConnection struct {
	TotalCount int                                                                    `json:"totalCount"`
	PageInfo   *UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo          `json:"pageInfo"`
	Nodes      []*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository `json:"nodes"`
}

UserRepositoriesUserRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection.

func (*UserRepositoriesUserRepositoriesRepositoryConnection) GetNodes

GetNodes returns UserRepositoriesUserRepositoriesRepositoryConnection.Nodes, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnection) GetPageInfo

GetPageInfo returns UserRepositoriesUserRepositoriesRepositoryConnection.PageInfo, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnection) GetTotalCount

GetTotalCount returns UserRepositoriesUserRepositoriesRepositoryConnection.TotalCount, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository struct {
	DatabaseId      *int                                                                                            `json:"databaseId"`
	Id              string                                                                                          `json:"id"`
	Name            string                                                                                          `json:"name"`
	NameWithOwner   string                                                                                          `json:"nameWithOwner"`
	Description     *string                                                                                         `json:"description"`
	Url             string                                                                                          `json:"url"`
	IsPrivate       bool                                                                                            `json:"isPrivate"`
	IsFork          bool                                                                                            `json:"isFork"`
	PushedAt        *time.Time                                                                                      `json:"pushedAt"`
	UpdatedAt       *time.Time                                                                                      `json:"updatedAt"`
	StargazerCount  int                                                                                             `json:"stargazerCount"`
	ForkCount       int                                                                                             `json:"forkCount"`
	Watchers        *UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection   `json:"watchers"`
	PrimaryLanguage *UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage             `json:"primaryLanguage"`
	Languages       *UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection `json:"languages"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository includes the requested fields of the GraphQL type Repository.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetDatabaseId

GetDatabaseId returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.DatabaseId, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetDescription

GetDescription returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.Description, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetForkCount

GetForkCount returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.ForkCount, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetId

GetId returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.Id, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetIsFork

GetIsFork returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.IsFork, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetIsPrivate

GetIsPrivate returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.IsPrivate, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetLanguages

GetLanguages returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.Languages, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetName

GetName returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.Name, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetNameWithOwner

GetNameWithOwner returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.NameWithOwner, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetPrimaryLanguage

GetPrimaryLanguage returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.PrimaryLanguage, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetPushedAt

GetPushedAt returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.PushedAt, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetStargazerCount

GetStargazerCount returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.StargazerCount, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetUpdatedAt

GetUpdatedAt returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.UpdatedAt, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetUrl

GetUrl returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.Url, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository) GetWatchers

GetWatchers returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepository.Watchers, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection struct {
	TotalCount int                                                                                                                `json:"totalCount"`
	TotalSize  int                                                                                                                `json:"totalSize"`
	Edges      []*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge `json:"edges"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection includes the requested fields of the GraphQL type LanguageConnection.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection) GetEdges

GetEdges returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection.Edges, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection) GetTotalCount

GetTotalCount returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection.TotalCount, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection) GetTotalSize

GetTotalSize returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnection.TotalSize, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge struct {
	Size int                                                                                                                          `json:"size"`
	Node *UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage `json:"node"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge includes the requested fields of the GraphQL type LanguageEdge.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge) GetNode

GetNode returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge.Node, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge) GetSize

GetSize returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdge.Size, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage struct {
	Name  string  `json:"name"`
	Color *string `json:"color"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage includes the requested fields of the GraphQL type Language.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage) GetColor

GetColor returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage.Color, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage) GetName

GetName returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryLanguagesLanguageConnectionEdgesLanguageEdgeNodeLanguage.Name, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage struct {
	Name  string  `json:"name"`
	Color *string `json:"color"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage includes the requested fields of the GraphQL type Language.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage) GetColor

GetColor returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage.Color, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage) GetName

GetName returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryPrimaryLanguage.Name, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection

type UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection struct {
	TotalCount int `json:"totalCount"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection includes the requested fields of the GraphQL type WatcherConnection.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection) GetTotalCount

GetTotalCount returns UserRepositoriesUserRepositoriesRepositoryConnectionNodesRepositoryWatchersWatcherConnection.TotalCount, and is useful for accessing the field via an interface.

type UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo

type UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo struct {
	HasNextPage bool    `json:"hasNextPage"`
	EndCursor   *string `json:"endCursor"`
}

UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor

GetEndCursor returns UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage

GetHasNextPage returns UserRepositoriesUserRepositoriesRepositoryConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

type UserResponse

type UserResponse struct {
	User *UserUser `json:"user"`
}

UserResponse is returned by User on success.

func User

func User(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
) (data_ *UserResponse, err_ error)

func (*UserResponse) GetUser

func (v *UserResponse) GetUser() *UserUser

GetUser returns UserResponse.User, and is useful for accessing the field via an interface.

type UserStarredRepositoriesResponse

type UserStarredRepositoriesResponse struct {
	User *UserStarredRepositoriesUser `json:"user"`
}

UserStarredRepositoriesResponse is returned by UserStarredRepositories on success.

func UserStarredRepositories

func UserStarredRepositories(
	ctx_ context.Context,
	client_ graphql.Client,
	login string,
	first int,
) (data_ *UserStarredRepositoriesResponse, err_ error)

func (*UserStarredRepositoriesResponse) GetUser

GetUser returns UserStarredRepositoriesResponse.User, and is useful for accessing the field via an interface.

type UserStarredRepositoriesUser

type UserStarredRepositoriesUser struct {
	StarredRepositories *UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection `json:"starredRepositories"`
}

UserStarredRepositoriesUser includes the requested fields of the GraphQL type User.

func (*UserStarredRepositoriesUser) GetStarredRepositories

GetStarredRepositories returns UserStarredRepositoriesUser.StarredRepositories, and is useful for accessing the field via an interface.

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection struct {
	TotalCount int                                                                                                    `json:"totalCount"`
	Edges      []*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge `json:"edges"`
}

UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection includes the requested fields of the GraphQL type StarredRepositoryConnection.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection) GetEdges

GetEdges returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection.Edges, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection) GetTotalCount

GetTotalCount returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnection.TotalCount, and is useful for accessing the field via an interface.

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge struct {
	StarredAt time.Time                                                                                                          `json:"starredAt"`
	Node      *UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository `json:"node"`
}

UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge includes the requested fields of the GraphQL type StarredRepositoryEdge.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge) GetNode

GetNode returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge.Node, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge) GetStarredAt

GetStarredAt returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdge.StarredAt, and is useful for accessing the field via an interface.

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository struct {
	NameWithOwner   string                                                                                                                            `json:"nameWithOwner"`
	Description     *string                                                                                                                           `json:"description"`
	Url             string                                                                                                                            `json:"url"`
	StargazerCount  int                                                                                                                               `json:"stargazerCount"`
	ForkCount       int                                                                                                                               `json:"forkCount"`
	PrimaryLanguage *UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage `json:"primaryLanguage"`
}

UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository) GetDescription

GetDescription returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository.Description, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository) GetForkCount

GetForkCount returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository.ForkCount, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository) GetNameWithOwner

GetNameWithOwner returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository.NameWithOwner, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository) GetPrimaryLanguage

GetPrimaryLanguage returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository.PrimaryLanguage, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository) GetStargazerCount

GetStargazerCount returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository.StargazerCount, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository) GetUrl

GetUrl returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepository.Url, and is useful for accessing the field via an interface.

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage

type UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage struct {
	Name  string  `json:"name"`
	Color *string `json:"color"`
}

UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage includes the requested fields of the GraphQL type Language.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage) GetColor

GetColor returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage.Color, and is useful for accessing the field via an interface.

func (*UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage) GetName

GetName returns UserStarredRepositoriesUserStarredRepositoriesStarredRepositoryConnectionEdgesStarredRepositoryEdgeNodeRepositoryPrimaryLanguage.Name, and is useful for accessing the field via an interface.

type UserUser

type UserUser struct {
	DatabaseId      *int      `json:"databaseId"`
	Id              string    `json:"id"`
	Login           string    `json:"login"`
	Name            *string   `json:"name"`
	Location        *string   `json:"location"`
	CreatedAt       time.Time `json:"createdAt"`
	AvatarUrl       string    `json:"avatarUrl"`
	WebsiteUrl      *string   `json:"websiteUrl"`
	TwitterUsername *string   `json:"twitterUsername"`
	Email           *string   `json:"email"`
	Bio             *string   `json:"bio"`
	Company         *string   `json:"company"`
}

UserUser includes the requested fields of the GraphQL type User.

func (*UserUser) GetAvatarUrl

func (v *UserUser) GetAvatarUrl() string

GetAvatarUrl returns UserUser.AvatarUrl, and is useful for accessing the field via an interface.

func (*UserUser) GetBio

func (v *UserUser) GetBio() *string

GetBio returns UserUser.Bio, and is useful for accessing the field via an interface.

func (*UserUser) GetCompany

func (v *UserUser) GetCompany() *string

GetCompany returns UserUser.Company, and is useful for accessing the field via an interface.

func (*UserUser) GetCreatedAt

func (v *UserUser) GetCreatedAt() time.Time

GetCreatedAt returns UserUser.CreatedAt, and is useful for accessing the field via an interface.

func (*UserUser) GetDatabaseId

func (v *UserUser) GetDatabaseId() *int

GetDatabaseId returns UserUser.DatabaseId, and is useful for accessing the field via an interface.

func (*UserUser) GetEmail

func (v *UserUser) GetEmail() *string

GetEmail returns UserUser.Email, and is useful for accessing the field via an interface.

func (*UserUser) GetId

func (v *UserUser) GetId() string

GetId returns UserUser.Id, and is useful for accessing the field via an interface.

func (*UserUser) GetLocation

func (v *UserUser) GetLocation() *string

GetLocation returns UserUser.Location, and is useful for accessing the field via an interface.

func (*UserUser) GetLogin

func (v *UserUser) GetLogin() string

GetLogin returns UserUser.Login, and is useful for accessing the field via an interface.

func (*UserUser) GetName

func (v *UserUser) GetName() *string

GetName returns UserUser.Name, and is useful for accessing the field via an interface.

func (*UserUser) GetTwitterUsername

func (v *UserUser) GetTwitterUsername() *string

GetTwitterUsername returns UserUser.TwitterUsername, and is useful for accessing the field via an interface.

func (*UserUser) GetWebsiteUrl

func (v *UserUser) GetWebsiteUrl() *string

GetWebsiteUrl returns UserUser.WebsiteUrl, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

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