forgejo

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotificationFeed

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

Types

type Client

type Client struct {
	Context *util.ScrapeCtx
	Domain  string
}

func (*Client) Request

func (c *Client) Request(method string, endpoint string) (status int, body []byte, err error)

type Comment

type Comment struct {
	Body           string
	CreatedAt      Time   `json:"created_at"`
	HtmlUrl        string `json:"html_url"`
	Id             uint
	IssueUrl       string `json:"issue_url"`
	PullRequestUrl string `json:"pull_request_url"`
	UpdatedAt      Time   `json:"updated_at"`
	User           User
}

type Error

type Error struct {
	Message string
}

type Issue

type Issue struct {
	Body       string
	CreatedAt  Time   `json:"created_at"`
	HtmlUrl    string `json:"html_url"`
	Id         uint
	Number     uint
	Repository IssueRepo
	State      string
	Title      string
	UpdatedAt  Time `json:"updated_at"`
	Url        string
	User       User
}

type IssueRepo

type IssueRepo struct {
	FullName string `json:"full_name"`
	Id       uint
	Name     string
	Owner    string
}

type Notification

type Notification struct {
	Id              uint
	Pinned          bool
	Reason          string
	Repository      NotificationRepository
	Subject         NotificationSubject
	SubscriptionUrl string `json:"subscription_url"`
	Unread          bool
	UpdatedAt       Time `json:"updated_at"`
	Url             string
}

type NotificationRepository

type NotificationRepository struct {
	Archived      bool
	ArchivedAt    Time   `json:"archived_at"`
	AvatarUrl     string `json:"avatar_url"`
	CreatedAt     Time   `json:"created_at"`
	DefaultBranch string `json:"default_branch"`
	Description   string
	Fork          bool
	FullName      string `json:"full_name"`
	HtmlUrl       string `json:"html_url"`
	Id            uint
	Name          string
	Owner         User
	Private       bool
	Url           string
	Website       string
}

type NotificationSubject

type NotificationSubject struct {
	Title                string
	Type                 string
	Url                  string
	HtmlUrl              string `json:"html_url"`
	LatestCommentUrl     string `json:"latest_comment_url"`
	LatestCommentHtmlUrl string `json:"latest_comment_html_url"`
	State                string
}

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