Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command added in v0.2.5

type Command struct {
	// filter
	Creator string
	State   string
	Label   []string
	// config
	Engine        string
	Output        string
	Title         string
	Theme         string
	ThemeRepo     string
	ThemeRevision *string
	BaseURL       string
	Feed          bool
	Katex         bool
}

type Comment

type Comment struct {
	ID        int       `json:"id"`
	IssueURL  string    `json:"issue_url"`
	HTMLURL   string    `json:"html_url"`
	User      User      `json:"user"`
	CreatedAt string    `json:"created_at"`
	UpdatedAt string    `json:"updated_at"`
	Body      string    `json:"body"`
	Reactions Reactions `json:"reactions"`
}

type Issue

type Issue struct {
	ID          int          `json:"id"`
	Number      int          `json:"number"` // issue number
	Title       string       `json:"title"`
	URL         string       `json:"html_url"`
	Body        string       `json:"body"`
	User        User         `json:"user"`
	State       string       `json:"state"`
	Locked      bool         `json:"locked"`
	Labels      []Label      `json:"labels"`
	CreatedAt   string       `json:"created_at"`
	UpdatedAt   string       `json:"updated_at"`
	ClosedAt    string       `json:"closed_at"`
	Comments    []Comment    `json:"-"` // ignore for un-marshalling
	Reactions   Reactions    `json:"reactions"`
	PullRequest *PullRequest `json:"pull_request,omitempty"` // used for filtering pull requests
}

type Label

type Label struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Color       string `json:"color"`
	Default     bool   `json:"default"`
}

type PullRequest

type PullRequest struct {
	HTMLURL  string `json:"html_url"`
	DiffURL  string `json:"diff_url"`
	PatchURL string `json:"patch_url"`
	MergedAt string `json:"merged_at"`
}

type Reactions

type Reactions struct {
	URL        string `json:"url"`
	TotalCount int    `json:"total_count"`
	ThumbUp    int    `json:"+1"`
	ThumbDown  int    `json:"-1"`
	Laugh      int    `json:"laugh"`
	Hooray     int    `json:"hooray"`
	Confused   int    `json:"confused"`
	Heart      int    `json:"heart"`
	Rocket     int    `json:"rocket"`
	Eyes       int    `json:"eyes"`
}

type Repository added in v0.2.5

type Repository struct {
	ID              int      `json:"id"`
	Name            string   `json:"name"`
	FullName        string   `json:"full_name"`
	Owner           User     `json:"owner"`
	Private         bool     `json:"private"`
	Description     string   `json:"description"`
	Fork            bool     `json:"fork"`
	ForksCount      int      `json:"forks_count"`
	StargazersCount int      `json:"stargazers_count"`
	WatchersCount   int      `json:"watchers_count"`
	OpenIssuesCount int      `json:"open_issues_count"`
	Topics          []string `json:"topics"`
	Archived        bool     `json:"archived"`
	PushedAt        string   `json:"pushed_at"`
	CreatedAt       string   `json:"created_at"`
	UpdatedAt       string   `json:"updated_at"`
}

type User

type User struct {
	Login     string `json:"login"`
	ID        int    `json:"id"`
	URL       string `json:"html_url"`
	AvatarURL string `json:"avatar_url"`
}

Jump to

Keyboard shortcuts

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