feed

package
v0.0.0-...-0490640 Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feeds

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

func NewFeeds

func NewFeeds(conn *relaxting.ES2Backend) *Feeds

func (*Feeds) GetActionLine

func (f *Feeds) GetActionLine(filters []string, startDate string, endDate string, timezone string, interval int, action string) (*util.ActionLine, error)

interval = time span for which to collect activity entries in hours

func (*Feeds) GetFeed

func (f *Feeds) GetFeed(req *automate_feed.FeedRequest) ([]*util.FeedEntry, int64, error)

func (*Feeds) GetFeedSummary

func (f *Feeds) GetFeedSummary(countCategory string, filters []string, start time.Time, end time.Time) (*util.FeedSummary, error)

func (*Feeds) HandleEvent

func (f *Feeds) HandleEvent(req *api.EventMsg) (*api.EventResponse, error)

Going forward, we'll need to maintain a map of event types to feed type(s). Since the only events we support currently map to the "event" feed type, we're hard-coding the feed type below.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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