remote

package
v0.0.0-...-121f34a Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GqlContributionsQuery string = `` /* 249-byte string literal not displayed */

Functions

func GetGitHubHeaders

func GetGitHubHeaders() *http.Header

func GetGraphQLClient

func GetGraphQLClient() *graphql.Client

func GetHttpClient

func GetHttpClient() *http.Client

func GetMarkdownUrl

func GetMarkdownUrl() string

func GetReadMeHeaders

func GetReadMeHeaders() *http.Header

func UrlEncode

func UrlEncode(s string) string

Types

type GqlResponse

type GqlResponse struct {
	User struct {
		Name                      string `json:"name"`
		Url                       string `json:"url"`
		AvatarUrl                 string `json:"avatarUrl"`
		RepositoriesContributedTo struct {
			Edges []struct {
				Node struct {
					Url           string `json:"url"`
					Name          string `json:"name"`
					NameWithOwner string `json:"nameWithOwner"`
					Owner         struct {
						Login     string `json:"login"`
						Url       string `json:"url"`
						AvatarUrl string `json:"avatarUrl"`
					}
				}
			}
		}
	}
}

Jump to

Keyboard shortcuts

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