feed

package
v0.0.0-...-80abe43 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create constructs a new feed from the data in the POST body

func CreateDB

func CreateDB(db *sql.DB) error

CreateDB creates the events table if it does not yet exist

func Index

Index returns a JSON array of all feeds

func Show

Show returns the data for a specific feed as JSON

Types

type Feed

type Feed struct {
	ID        uuid.UUID   `json:"id"`
	Unread    uuids.UUIDs `json:"unread_events"`
	Events    uuids.UUIDs `json:"events"`
	CreatedAt time.Time   `json:"timestamp"`
}

Feed defines the data for an event feed

Jump to

Keyboard shortcuts

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