githubv4

package
v3.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package githubv4 provides GitHub API v4 adaptor

Index

Constants

View Source
const ListRepos_Operation = `` /* 1105-byte string literal not displayed */

The query or mutation executed by ListRepos.

Variables

This section is empty.

Functions

This section is empty.

Types

type LanguageFragment

type LanguageFragment struct {
	// The name of the current language.
	Name string `json:"name"`
}

LanguageFragment includes the GraphQL fields of Language requested by the fragment LanguageFragment. The GraphQL type's documentation follows.

Represents a given language found in repositories.

func (*LanguageFragment) GetName

func (v *LanguageFragment) GetName() string

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

type ListReposResponse

type ListReposResponse struct {
	// The currently authenticated user.
	Viewer ListReposViewerUser `json:"viewer"`
}

ListReposResponse is returned by ListRepos on success.

func ListRepos

func ListRepos(
	ctx_ context.Context,
	client_ graphql.Client,
	first int,
	after string,
	isFork *bool,
	privacy RepositoryPrivacy,
	affiliations []RepositoryAffiliation,
	orderBy RepositoryOrder,
	isArchived *bool,
) (*ListReposResponse, error)

func (*ListReposResponse) GetViewer

func (v *ListReposResponse) GetViewer() ListReposViewerUser

GetViewer returns ListReposResponse.Viewer, and is useful for accessing the field via an interface.

type ListReposViewerUser

type ListReposViewerUser struct {
	// A list of repositories that the user owns.
	Repositories ListReposViewerUserRepositoriesRepositoryConnection `json:"repositories"`
}

ListReposViewerUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.

A user is an individual's account on GitHub that owns repositories and can make new content.

func (*ListReposViewerUser) GetRepositories

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

type ListReposViewerUserRepositoriesRepositoryConnection

type ListReposViewerUserRepositoriesRepositoryConnection struct {
	// A list of edges.
	Edges []ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge `json:"edges"`
	// Identifies the total count of items in the connection.
	TotalCount int `json:"totalCount"`
	// Information to aid in pagination.
	PageInfo ListReposViewerUserRepositoriesRepositoryConnectionPageInfo `json:"pageInfo"`
}

ListReposViewerUserRepositoriesRepositoryConnection includes the requested fields of the GraphQL type RepositoryConnection. The GraphQL type's documentation follows.

A list of repositories owned by the subject.

func (*ListReposViewerUserRepositoriesRepositoryConnection) GetEdges

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

func (*ListReposViewerUserRepositoriesRepositoryConnection) GetPageInfo

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

func (*ListReposViewerUserRepositoriesRepositoryConnection) GetTotalCount

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

type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge

type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge struct {
	// The item at the end of the edge.
	Node ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository `json:"node"`
}

ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge includes the requested fields of the GraphQL type RepositoryEdge. The GraphQL type's documentation follows.

An edge in a connection.

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdge) GetNode

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

type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository

type ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository struct {
	RepositoryFragment `json:"-"`
}

ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.

A repository contains the content for a project.

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetCreatedAt

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetDescription

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetHomepageUrl

GetHomepageUrl returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.HomepageUrl, and is useful for accessing the field via an interface.

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsArchived

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsFork

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsPrivate

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetIsTemplate

GetIsTemplate returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.IsTemplate, and is useful for accessing the field via an interface.

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetName

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetOwner

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetParent

GetParent returns ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository.Parent, and is useful for accessing the field via an interface.

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetPrimaryLanguage

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUpdatedAt

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) GetUrl

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) MarshalJSON

func (*ListReposViewerUserRepositoriesRepositoryConnectionEdgesRepositoryEdgeNodeRepository) UnmarshalJSON

type ListReposViewerUserRepositoriesRepositoryConnectionPageInfo

type ListReposViewerUserRepositoriesRepositoryConnectionPageInfo struct {
	PageInfoFragment `json:"-"`
}

ListReposViewerUserRepositoriesRepositoryConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.

Information about pagination in a connection.

func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetEndCursor

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) GetHasNextPage

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

func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) MarshalJSON

func (*ListReposViewerUserRepositoriesRepositoryConnectionPageInfo) UnmarshalJSON

type OrderDirection

type OrderDirection string

Possible directions in which to order a list of items when provided an `orderBy` argument.

const (
	// Specifies an ascending order for a given `orderBy` argument.
	OrderDirectionAsc OrderDirection = "ASC"
	// Specifies a descending order for a given `orderBy` argument.
	OrderDirectionDesc OrderDirection = "DESC"
)

type OwnerFragment

type OwnerFragment interface {

	// GetLogin returns the interface-field "login" from its implementation.
	// The GraphQL interface field's documentation follows.
	//
	// The username used to login.
	GetLogin() string
	// contains filtered or unexported methods
}

OwnerFragment includes the GraphQL fields of RepositoryOwner requested by the fragment OwnerFragment. The GraphQL type's documentation follows.

Represents an owner of a Repository.

OwnerFragment is implemented by the following types: OwnerFragmentOrganization OwnerFragmentUser

type OwnerFragmentOrganization

type OwnerFragmentOrganization struct {
	// The username used to login.
	Login string `json:"login"`
}

OwnerFragment includes the GraphQL fields of Organization requested by the fragment OwnerFragment. The GraphQL type's documentation follows.

Represents an owner of a Repository.

func (*OwnerFragmentOrganization) GetLogin

func (v *OwnerFragmentOrganization) GetLogin() string

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

type OwnerFragmentUser

type OwnerFragmentUser struct {
	// The username used to login.
	Login string `json:"login"`
}

OwnerFragment includes the GraphQL fields of User requested by the fragment OwnerFragment. The GraphQL type's documentation follows.

Represents an owner of a Repository.

func (*OwnerFragmentUser) GetLogin

func (v *OwnerFragmentUser) GetLogin() string

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

type PageInfoFragment

type PageInfoFragment struct {
	// When paginating forwards, the cursor to continue.
	EndCursor string `json:"endCursor"`
	// When paginating forwards, are there more items?
	HasNextPage bool `json:"hasNextPage"`
}

PageInfoFragment includes the GraphQL fields of PageInfo requested by the fragment PageInfoFragment. The GraphQL type's documentation follows.

Information about pagination in a connection.

func (*PageInfoFragment) GetEndCursor

func (v *PageInfoFragment) GetEndCursor() string

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

func (*PageInfoFragment) GetHasNextPage

func (v *PageInfoFragment) GetHasNextPage() bool

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

type ParentRepositoryFragment

type ParentRepositoryFragment struct {
	// The name of the repository.
	Name string `json:"name"`
	// The User owner of the repository.
	Owner ParentRepositoryFragmentOwnerRepositoryOwner `json:"-"`
}

ParentRepositoryFragment includes the GraphQL fields of Repository requested by the fragment ParentRepositoryFragment. The GraphQL type's documentation follows.

A repository contains the content for a project.

func (*ParentRepositoryFragment) GetName

func (v *ParentRepositoryFragment) GetName() string

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

func (*ParentRepositoryFragment) GetOwner

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

func (*ParentRepositoryFragment) MarshalJSON

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

func (*ParentRepositoryFragment) UnmarshalJSON

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

type ParentRepositoryFragmentOwnerOrganization

type ParentRepositoryFragmentOwnerOrganization struct {
	Typename                  string `json:"__typename"`
	OwnerFragmentOrganization `json:"-"`
}

ParentRepositoryFragmentOwnerOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.

An account on GitHub, with one or more owners, that has repositories, members and teams.

func (*ParentRepositoryFragmentOwnerOrganization) GetLogin

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

func (*ParentRepositoryFragmentOwnerOrganization) GetTypename

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

func (*ParentRepositoryFragmentOwnerOrganization) MarshalJSON

func (*ParentRepositoryFragmentOwnerOrganization) UnmarshalJSON

type ParentRepositoryFragmentOwnerRepositoryOwner

type ParentRepositoryFragmentOwnerRepositoryOwner interface {

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

ParentRepositoryFragmentOwnerRepositoryOwner includes the requested fields of the GraphQL interface RepositoryOwner.

ParentRepositoryFragmentOwnerRepositoryOwner is implemented by the following types: ParentRepositoryFragmentOwnerOrganization ParentRepositoryFragmentOwnerUser The GraphQL type's documentation follows.

Represents an owner of a Repository.

type ParentRepositoryFragmentOwnerUser

type ParentRepositoryFragmentOwnerUser struct {
	Typename          string `json:"__typename"`
	OwnerFragmentUser `json:"-"`
}

ParentRepositoryFragmentOwnerUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.

A user is an individual's account on GitHub that owns repositories and can make new content.

func (*ParentRepositoryFragmentOwnerUser) GetLogin

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

func (*ParentRepositoryFragmentOwnerUser) GetTypename

func (v *ParentRepositoryFragmentOwnerUser) GetTypename() string

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

func (*ParentRepositoryFragmentOwnerUser) MarshalJSON

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

func (*ParentRepositoryFragmentOwnerUser) UnmarshalJSON

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

type RepositoryAffiliation

type RepositoryAffiliation string

The affiliation of a user to a repository

const (
	// Repositories that the user has been added to as a collaborator.
	RepositoryAffiliationCollaborator RepositoryAffiliation = "COLLABORATOR"
	// Repositories that the user has access to through being a member of an
	// organization. This includes every repository on every team that the user is on.
	RepositoryAffiliationOrganizationMember RepositoryAffiliation = "ORGANIZATION_MEMBER"
	// Repositories that are owned by the authenticated user.
	RepositoryAffiliationOwner RepositoryAffiliation = "OWNER"
)

type RepositoryFragment

type RepositoryFragment struct {
	// The HTTP URL for this repository
	Url string `json:"url"`
	// The repository's URL.
	HomepageUrl string `json:"homepageUrl"`
	// The primary language of the repository's code.
	PrimaryLanguage RepositoryFragmentPrimaryLanguage `json:"primaryLanguage"`
	// The name of the repository.
	Name string `json:"name"`
	// The User owner of the repository.
	Owner RepositoryFragmentOwnerRepositoryOwner `json:"-"`
	// The description of the repository.
	Description string `json:"description"`
	// Identifies the date and time when the object was created.
	CreatedAt time.Time `json:"createdAt"`
	// Indicates if the repository is unmaintained.
	IsArchived bool `json:"isArchived"`
	// Identifies if the repository is a fork.
	IsFork bool `json:"isFork"`
	// Identifies if the repository is private or internal.
	IsPrivate bool `json:"isPrivate"`
	// Identifies if the repository is a template that can be used to generate new repositories.
	IsTemplate bool `json:"isTemplate"`
	// Identifies the date and time when the object was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
	// The repository parent, if this is a fork.
	Parent RepositoryFragmentParentRepository `json:"parent"`
}

RepositoryFragment includes the GraphQL fields of Repository requested by the fragment RepositoryFragment. The GraphQL type's documentation follows.

A repository contains the content for a project.

func (*RepositoryFragment) GetCreatedAt

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

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

func (*RepositoryFragment) GetDescription

func (v *RepositoryFragment) GetDescription() string

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

func (*RepositoryFragment) GetHomepageUrl

func (v *RepositoryFragment) GetHomepageUrl() string

GetHomepageUrl returns RepositoryFragment.HomepageUrl, and is useful for accessing the field via an interface.

func (*RepositoryFragment) GetIsArchived

func (v *RepositoryFragment) GetIsArchived() bool

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

func (*RepositoryFragment) GetIsFork

func (v *RepositoryFragment) GetIsFork() bool

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

func (*RepositoryFragment) GetIsPrivate

func (v *RepositoryFragment) GetIsPrivate() bool

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

func (*RepositoryFragment) GetIsTemplate

func (v *RepositoryFragment) GetIsTemplate() bool

GetIsTemplate returns RepositoryFragment.IsTemplate, and is useful for accessing the field via an interface.

func (*RepositoryFragment) GetName

func (v *RepositoryFragment) GetName() string

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

func (*RepositoryFragment) GetOwner

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

func (*RepositoryFragment) GetParent

GetParent returns RepositoryFragment.Parent, and is useful for accessing the field via an interface.

func (*RepositoryFragment) GetPrimaryLanguage

func (v *RepositoryFragment) GetPrimaryLanguage() RepositoryFragmentPrimaryLanguage

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

func (*RepositoryFragment) GetUpdatedAt

func (v *RepositoryFragment) GetUpdatedAt() time.Time

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

func (*RepositoryFragment) GetUrl

func (v *RepositoryFragment) GetUrl() string

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

func (*RepositoryFragment) MarshalJSON

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

func (*RepositoryFragment) UnmarshalJSON

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

type RepositoryFragmentOwnerOrganization

type RepositoryFragmentOwnerOrganization struct {
	Typename                  string `json:"__typename"`
	OwnerFragmentOrganization `json:"-"`
}

RepositoryFragmentOwnerOrganization includes the requested fields of the GraphQL type Organization. The GraphQL type's documentation follows.

An account on GitHub, with one or more owners, that has repositories, members and teams.

func (*RepositoryFragmentOwnerOrganization) GetLogin

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

func (*RepositoryFragmentOwnerOrganization) GetTypename

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

func (*RepositoryFragmentOwnerOrganization) MarshalJSON

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

func (*RepositoryFragmentOwnerOrganization) UnmarshalJSON

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

type RepositoryFragmentOwnerRepositoryOwner

type RepositoryFragmentOwnerRepositoryOwner interface {

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

RepositoryFragmentOwnerRepositoryOwner includes the requested fields of the GraphQL interface RepositoryOwner.

RepositoryFragmentOwnerRepositoryOwner is implemented by the following types: RepositoryFragmentOwnerOrganization RepositoryFragmentOwnerUser The GraphQL type's documentation follows.

Represents an owner of a Repository.

type RepositoryFragmentOwnerUser

type RepositoryFragmentOwnerUser struct {
	Typename          string `json:"__typename"`
	OwnerFragmentUser `json:"-"`
}

RepositoryFragmentOwnerUser includes the requested fields of the GraphQL type User. The GraphQL type's documentation follows.

A user is an individual's account on GitHub that owns repositories and can make new content.

func (*RepositoryFragmentOwnerUser) GetLogin

func (v *RepositoryFragmentOwnerUser) GetLogin() string

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

func (*RepositoryFragmentOwnerUser) GetTypename

func (v *RepositoryFragmentOwnerUser) GetTypename() string

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

func (*RepositoryFragmentOwnerUser) MarshalJSON

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

func (*RepositoryFragmentOwnerUser) UnmarshalJSON

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

type RepositoryFragmentParentRepository

type RepositoryFragmentParentRepository struct {
	ParentRepositoryFragment `json:"-"`
}

RepositoryFragmentParentRepository includes the requested fields of the GraphQL type Repository. The GraphQL type's documentation follows.

A repository contains the content for a project.

func (*RepositoryFragmentParentRepository) GetName

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

func (*RepositoryFragmentParentRepository) GetOwner

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

func (*RepositoryFragmentParentRepository) MarshalJSON

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

func (*RepositoryFragmentParentRepository) UnmarshalJSON

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

type RepositoryFragmentPrimaryLanguage

type RepositoryFragmentPrimaryLanguage struct {
	LanguageFragment `json:"-"`
}

RepositoryFragmentPrimaryLanguage includes the requested fields of the GraphQL type Language. The GraphQL type's documentation follows.

Represents a given language found in repositories.

func (*RepositoryFragmentPrimaryLanguage) GetName

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

func (*RepositoryFragmentPrimaryLanguage) MarshalJSON

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

func (*RepositoryFragmentPrimaryLanguage) UnmarshalJSON

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

type RepositoryOrder

type RepositoryOrder struct {
	// The ordering direction.
	Direction OrderDirection `json:"direction"`
	// The field to order repositories by.
	Field RepositoryOrderField `json:"field"`
}

Ordering options for repository connections

func (*RepositoryOrder) GetDirection

func (v *RepositoryOrder) GetDirection() OrderDirection

GetDirection returns RepositoryOrder.Direction, and is useful for accessing the field via an interface.

func (*RepositoryOrder) GetField

func (v *RepositoryOrder) GetField() RepositoryOrderField

GetField returns RepositoryOrder.Field, and is useful for accessing the field via an interface.

type RepositoryOrderField

type RepositoryOrderField string

Properties by which repository connections can be ordered.

const (
	// Order repositories by creation time
	RepositoryOrderFieldCreatedAt RepositoryOrderField = "CREATED_AT"
	// Order repositories by name
	RepositoryOrderFieldName RepositoryOrderField = "NAME"
	// Order repositories by push time
	RepositoryOrderFieldPushedAt RepositoryOrderField = "PUSHED_AT"
	// Order repositories by number of stargazers
	RepositoryOrderFieldStargazers RepositoryOrderField = "STARGAZERS"
	// Order repositories by update time
	RepositoryOrderFieldUpdatedAt RepositoryOrderField = "UPDATED_AT"
)

type RepositoryPrivacy

type RepositoryPrivacy string

The privacy of a repository

const (
	// Private
	RepositoryPrivacyPrivate RepositoryPrivacy = "PRIVATE"
	// Public
	RepositoryPrivacyPublic RepositoryPrivacy = "PUBLIC"
)

Jump to

Keyboard shortcuts

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