riviera: hawx.me/code/riviera/river/events Index | Files

package events

import "hawx.me/code/riviera/river/events"

Package events keeps track of the results of fetching feeds.

Index

Package Files

events.go

type Event Uses

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 Uses

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

Events is a list of Event objects.

func New Uses

func New(size int) *Events

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

func (*Events) List Uses

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

List the events, truncating to the size.

func (*Events) Prepend Uses

func (e *Events) Prepend(ev Event)

Prepend an event to the list.

Package events imports 1 packages (graph) and is imported by 6 packages. Updated 2019-04-22. Refresh now. Tools for package owners.