core

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LanguageSize

type LanguageSize struct {
	Name       string  `json:"name"`
	Size       int     `json:"size"`
	Percentage float64 `json:"percentage"`
}

type MarkdownOptions added in v0.0.5

type MarkdownOptions struct {
	IsEachExtension bool
}

type Octclient

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

func NewOctclient

func NewOctclient(user string, token string) Octclient

func (*Octclient) ConvertJson added in v0.0.5

func (*Octclient) ConvertJson(r *Results) (string, error)

func (*Octclient) ConvertTableForMarkdown added in v0.0.5

func (*Octclient) ConvertTableForMarkdown(r *Results, o *MarkdownOptions) string

func (*Octclient) GetRepositoriesContributedTo

func (o *Octclient) GetRepositoriesContributedTo(ctx context.Context, isSortBySize bool, reverse bool) (*Results, error)

type Results

type Results struct {
	UpdatedRange  UpdatedRange   `json:"updated_range"`
	LanguageSizes []LanguageSize `json:"language_sizes"`
}

type UpdatedRange

type UpdatedRange struct {
	Oldest time.Time `json:"oldest"`
	Latest time.Time `json:"latest"`
}

type UserRepositoriesContributedTo

type UserRepositoriesContributedTo struct {
	User struct {
		RepositoriesContributedTo struct {
			TotalCount githubv4.Int
			Nodes      []struct {
				UpdatedAt githubv4.DateTime
				Languages struct {
					Edges []struct {
						Size githubv4.Int
						Node struct {
							Name githubv4.String
						}
					}
				} `graphql:"languages(first: 100)"`
			}
		} `` /* 154-byte string literal not displayed */
	} `graphql:"user(login: $login)"`
}

Jump to

Keyboard shortcuts

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