github

package
v0.0.0-...-889951b Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotificationFeed

func NotificationFeed(ctx *util.ScrapeCtx) (feed *feeds.Feed, err error)

func Request

func Request(method string, url string, ctx *util.ScrapeCtx) (status int, body []byte, err error)

Types

type Discussion

type Discussion struct {
	Body         string
	Comments     uint
	Created_at   string
	Html_url     string
	Id           uint
	Locked       bool
	Number       uint
	State        string
	State_reason string
	Title        string
	Updated_at   Time
	User         User
}

type Issue

type Issue struct {
	Body       string
	Created_at Time
	Diff_url   string
	Draft      bool
	Html_url   string
	Id         uint
	Number     uint
	Patch_url  string
	Sha        string
	State      string
	Title      string
	Updated_at Time
	User       User
}

type Notification

type Notification struct {
	Id               string
	Last_read_at     Time
	Reason           string
	Subject          NotificationSubject
	Unread           bool
	Updated_at       Time
	Repository       NotificationRepository
	Url              string
	Subscription_url string
}

type NotificationRepository

type NotificationRepository struct {
	Description string
	Fork        bool
	Full_name   string
	Id          float32
	Name        string
	Private     bool
	HtmlUrl     string
}

type NotificationSubject

type NotificationSubject struct {
	Title string
	Type  string
	Url   string
}

type Release

type Release struct {
	Author       User
	Body         string
	Created_at   Time
	Published_at Time
	Draft        bool
	Html_url     string
	Id           uint
	Name         string
	Tag_name     string
	Prerelease   bool
}

type Time

type Time struct {
	time.Time
}

func (*Time) UnmarshalJSON

func (self *Time) UnmarshalJSON(b []byte) error

type User

type User struct {
	Avatar_url string
	Html_url   string
	Id         uint
	Login      string
	Site_admin bool
	Type       string
}

Jump to

Keyboard shortcuts

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