gen

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 5 Imported by: 4

Documentation

Index

Constants

View Source
const AddStarDocument = `` /* 162-byte string literal not displayed */
View Source
const GetNode2Document = `` /* 126-byte string literal not displayed */
View Source
const GetNodeDocument = `` /* 214-byte string literal not displayed */
View Source
const GetUserDocument = `` /* 356-byte string literal not displayed */

Variables

View Source
var DocumentOperationNames = map[string]string{
	GetUserDocument:  "GetUser",
	GetNodeDocument:  "GetNode",
	AddStarDocument:  "AddStar",
	GetNode2Document: "GetNode2",
}

Functions

This section is empty.

Types

type AddStar added in v0.0.3

type AddStar struct {
	AddStar *AddStar_AddStar "json:\"addStar,omitempty\" graphql:\"addStar\""
}

func (*AddStar) GetAddStar added in v0.13.0

func (t *AddStar) GetAddStar() *AddStar_AddStar

type AddStar_AddStar added in v0.0.3

type AddStar_AddStar struct {
	Starrable *AddStar_AddStar_Starrable "json:\"starrable,omitempty\" graphql:\"starrable\""
}

func (*AddStar_AddStar) GetStarrable added in v0.13.0

func (t *AddStar_AddStar) GetStarrable() *AddStar_AddStar_Starrable

type AddStar_AddStar_Starrable added in v0.0.3

type AddStar_AddStar_Starrable struct {
	ID               string                               "json:\"id\" graphql:\"id\""
	ViewerHasStarred bool                                 "json:\"viewerHasStarred\" graphql:\"viewerHasStarred\""
	Repository       AddStar_AddStar_Starrable_Repository "graphql:\"... on Repository\""
}

func (*AddStar_AddStar_Starrable) GetID added in v0.13.0

func (t *AddStar_AddStar_Starrable) GetID() string

func (*AddStar_AddStar_Starrable) GetRepository added in v0.13.0

func (*AddStar_AddStar_Starrable) GetViewerHasStarred added in v0.13.0

func (t *AddStar_AddStar_Starrable) GetViewerHasStarred() bool

type AddStar_AddStar_Starrable_Repository added in v0.0.3

type AddStar_AddStar_Starrable_Repository struct {
	ID   string "json:\"id\" graphql:\"id\""
	Name string "json:\"name\" graphql:\"name\""
}

func (*AddStar_AddStar_Starrable_Repository) GetID added in v0.13.0

func (*AddStar_AddStar_Starrable_Repository) GetName added in v0.13.0

type Client

type Client struct {
	Client *clientv2.Client
}

func (*Client) AddStar added in v0.0.3

func (c *Client) AddStar(ctx context.Context, input model.AddStarInput, interceptors ...clientv2.RequestInterceptor) (*AddStar, error)

func (*Client) GetNode added in v0.0.3

func (c *Client) GetNode(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNode, error)

func (*Client) GetNode2 added in v0.0.3

func (c *Client) GetNode2(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNode2, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, repositoryFirst int, languageFirst int, interceptors ...clientv2.RequestInterceptor) (*GetUser, error)

type GetNode added in v0.0.3

type GetNode struct {
	Node *GetNode_Node "json:\"node,omitempty\" graphql:\"node\""
}

func (*GetNode) GetNode added in v0.13.0

func (t *GetNode) GetNode() *GetNode_Node

type GetNode2 added in v0.0.3

type GetNode2 struct {
	Node *GetNode2_Node_Release "json:\"node,omitempty\" graphql:\"node\""
}

func (*GetNode2) GetNode added in v0.13.0

func (t *GetNode2) GetNode() *GetNode2_Node_Release

type GetNode2_Node_Release added in v0.0.3

type GetNode2_Node_Release struct {
	ID             string                                  "json:\"id\" graphql:\"id\""
	Name           *string                                 "json:\"name,omitempty\" graphql:\"name\""
	ReactionGroups []*GetNode2_Node_Release_ReactionGroups "json:\"reactionGroups,omitempty\" graphql:\"reactionGroups\""
}

func (*GetNode2_Node_Release) GetID added in v0.13.0

func (t *GetNode2_Node_Release) GetID() string

func (*GetNode2_Node_Release) GetName added in v0.13.0

func (t *GetNode2_Node_Release) GetName() *string

func (*GetNode2_Node_Release) GetReactionGroups added in v0.13.0

type GetNode2_Node_Release_ReactionGroups added in v0.13.0

type GetNode2_Node_Release_ReactionGroups struct {
	CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\""
}

func (*GetNode2_Node_Release_ReactionGroups) GetCreatedAt added in v0.13.0

func (t *GetNode2_Node_Release_ReactionGroups) GetCreatedAt() *time.Time

type GetNode_Node added in v0.0.3

type GetNode_Node struct {
	ID         string                "json:\"id\" graphql:\"id\""
	Repository RepositoryFragment    "graphql:\"... on Repository\""
	Reaction   GetNode_Node_Reaction "graphql:\"... on Reaction\""
}

func (*GetNode_Node) GetID added in v0.13.0

func (t *GetNode_Node) GetID() string

func (*GetNode_Node) GetReaction added in v0.13.0

func (t *GetNode_Node) GetReaction() *GetNode_Node_Reaction

func (*GetNode_Node) GetRepository added in v0.13.0

func (t *GetNode_Node) GetRepository() *RepositoryFragment

type GetNode_Node_Reaction added in v0.0.3

type GetNode_Node_Reaction struct {
	ID   string                      "json:\"id\" graphql:\"id\""
	User *GetNode_Node_Reaction_User "json:\"user,omitempty\" graphql:\"user\""
}

func (*GetNode_Node_Reaction) GetID added in v0.13.0

func (t *GetNode_Node_Reaction) GetID() string

func (*GetNode_Node_Reaction) GetUser added in v0.13.0

type GetNode_Node_Reaction_User added in v0.0.3

type GetNode_Node_Reaction_User struct {
	ID string "json:\"id\" graphql:\"id\""
}

func (*GetNode_Node_Reaction_User) GetID added in v0.13.0

type GetUser

type GetUser struct {
	Viewer GetUser_Viewer "json:\"viewer\" graphql:\"viewer\""
}

func (*GetUser) GetViewer added in v0.13.0

func (t *GetUser) GetViewer() *GetUser_Viewer

type GetUser_Viewer added in v0.0.3

type GetUser_Viewer struct {
	ID           string                      "json:\"id\" graphql:\"id\""
	Name         *string                     "json:\"name,omitempty\" graphql:\"name\""
	Repositories GetUser_Viewer_Repositories "json:\"repositories\" graphql:\"repositories\""
}

func (*GetUser_Viewer) GetID added in v0.13.0

func (t *GetUser_Viewer) GetID() string

func (*GetUser_Viewer) GetName added in v0.13.0

func (t *GetUser_Viewer) GetName() *string

func (*GetUser_Viewer) GetRepositories added in v0.13.0

func (t *GetUser_Viewer) GetRepositories() *GetUser_Viewer_Repositories

type GetUser_Viewer_Repositories added in v0.0.3

type GetUser_Viewer_Repositories struct {
	Nodes []*GetUser_Viewer_Repositories_Nodes "json:\"nodes,omitempty\" graphql:\"nodes\""
}

func (*GetUser_Viewer_Repositories) GetNodes added in v0.13.0

type GetUser_Viewer_Repositories_Nodes added in v0.0.3

type GetUser_Viewer_Repositories_Nodes struct {
	ID        string                                       "json:\"id\" graphql:\"id\""
	Name      string                                       "json:\"name\" graphql:\"name\""
	Languages *GetUser_Viewer_Repositories_Nodes_Languages "json:\"languages,omitempty\" graphql:\"languages\""
}

func (*GetUser_Viewer_Repositories_Nodes) GetID added in v0.13.0

func (*GetUser_Viewer_Repositories_Nodes) GetLanguages added in v0.13.0

func (*GetUser_Viewer_Repositories_Nodes) GetName added in v0.13.0

type GetUser_Viewer_Repositories_Nodes_Languages added in v0.0.3

type GetUser_Viewer_Repositories_Nodes_Languages struct {
	Nodes []*LanguageFragment "json:\"nodes,omitempty\" graphql:\"nodes\""
}

func (*GetUser_Viewer_Repositories_Nodes_Languages) GetNodes added in v0.13.0

type GithubGraphQLClient added in v0.0.4

type GithubGraphQLClient interface {
	GetUser(ctx context.Context, repositoryFirst int, languageFirst int, interceptors ...clientv2.RequestInterceptor) (*GetUser, error)
	GetNode(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNode, error)
	AddStar(ctx context.Context, input model.AddStarInput, interceptors ...clientv2.RequestInterceptor) (*AddStar, error)
	GetNode2(ctx context.Context, id string, interceptors ...clientv2.RequestInterceptor) (*GetNode2, error)
}

func NewClient

func NewClient(cli *http.Client, baseURL string, options *clientv2.Options, interceptors ...clientv2.RequestInterceptor) GithubGraphQLClient

type LanguageFragment

type LanguageFragment struct {
	ID   string "json:\"id\" graphql:\"id\""
	Name string "json:\"name\" graphql:\"name\""
}

func (*LanguageFragment) GetID added in v0.13.0

func (t *LanguageFragment) GetID() string

func (*LanguageFragment) GetName added in v0.13.0

func (t *LanguageFragment) GetName() string

type RepositoryFragment added in v0.0.4

type RepositoryFragment struct {
	ID   string "json:\"id\" graphql:\"id\""
	Name string "json:\"name\" graphql:\"name\""
}

func (*RepositoryFragment) GetID added in v0.13.0

func (t *RepositoryFragment) GetID() string

func (*RepositoryFragment) GetName added in v0.13.0

func (t *RepositoryFragment) GetName() string

Jump to

Keyboard shortcuts

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