gh

package
v0.0.0-...-7883dfa Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Name          string
	Size          int64
	Uploader      string
	ContentType   string
	DownloadCount int64
	DownloadURL   string
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

type Assets

type Assets []Asset

type Release

type Release struct {
	Tag         string
	PageURL     string
	CreatedAt   time.Time
	PublishedAt time.Time
	ReleaseNote string
	Author      string
	Assets      []Asset
}

type Releases

type Releases []Release

func GetReleases

func GetReleases(owner, repo string) (*Releases, error)

type Repo

type Repo struct {
	Owner       string
	Name        string
	License     string
	Description string
	CreatedAt   time.Time
	UpdatedAt   time.Time
	Size        int64
	Language    string
	Stars       int64
	Forks       int64
}

type Repos

type Repos []Repo
func Search(param *SearchParam) (*Repos, error)

type SearchParam

type SearchParam struct {
	Query string
}

func NewSearchParam

func NewSearchParam(query string) *SearchParam

Jump to

Keyboard shortcuts

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