activityfeed

package
v0.0.0-...-cf8633f Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RssURL

func RssURL(domain, accountID string, maxResults int, updatedAfter, updatedBefore int64) string

Types

type ActivityFeedReport

type ActivityFeedReport []*ReportItem

func ParseFromReader

func ParseFromReader(reader io.Reader) (report ActivityFeedReport, err error)

func ParseFromURL

func ParseFromURL(cfg *Config, ctx context.Context) (report ActivityFeedReport, err error)

func (ActivityFeedReport) FilterItems

func (feed ActivityFeedReport) FilterItems(matches func(*ReportItem) bool) ActivityFeedReport

func (ActivityFeedReport) Len

func (feed ActivityFeedReport) Len() int

func (ActivityFeedReport) SortItems

func (feed ActivityFeedReport) SortItems(compare func(item1, item2 *ReportItem) int) ActivityFeedReport

type Config

type Config struct {
	Host      string
	Username  string
	Password  string
	AccountID string
	SinceDate time.Time
	TillDate  time.Time
	Verbose   bool
}

type ReportItem

type ReportItem struct {
	Updated  *time.Time
	Category string
	IssueID  string
	Summary  string
	Link     string
}

func (*ReportItem) String

func (i *ReportItem) String() string

Jump to

Keyboard shortcuts

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