events

package
v0.0.0-...-44d4e1f Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package events keeps track of the results of fetching feeds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	At   time.Time `json:"at"`
	URI  string    `json:"uri"`
	Code int       `json:"code"`
}

An Event keeps track of the results of fetching a feed.

type Events

type Events struct {
	// contains filtered or unexported fields
}

Events is a list of Event objects.

func New

func New(size int) *Events

New returns an empty list of Events with a maximum size.

func (*Events) List

func (e *Events) List() []Event

List the events, truncating to the size.

func (*Events) Prepend

func (e *Events) Prepend(ev Event)

Prepend an event to the list.

Jump to

Keyboard shortcuts

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