eventfeed

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFeedAggregate

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

func NewEventFeedAggregate

func NewEventFeedAggregate(cfgMgmtClient cmsService.CfgMgmtClient,
	feedClient ccFeed.FeedServiceClient) *EventFeedAggregate

func (*EventFeedAggregate) CollectEventFeed

func (eventFeedAggregate *EventFeedAggregate) CollectEventFeed(ctx context.Context,
	request *agReq.EventFilter) (*agRes.Events, error)

CollectEventFeed - collection the events from all the components

It is important to mention that we will be able to survive if one of the components return an error but the rest of them don't, the reason why is because the gateway is just collecting information from the downstream services and it should be able to handle errors.

func (*EventFeedAggregate) CollectEventGuitarStrings

func (eventFeedAggregate *EventFeedAggregate) CollectEventGuitarStrings(ctx context.Context,
	request *agReq.EventStrings) (*agRes.EventStrings, error)

CollectEventGuitarStrings - collect the guitar strings from all the componets

It is important to mention that we will be able to survive if one of the components return an error but the rest of them don't, the reason why is because the gateway is just collecting information from the downstream services and it should be able to handle errors.

func (*EventFeedAggregate) CollectEventTaskCounts

func (eventFeedAggregate *EventFeedAggregate) CollectEventTaskCounts(
	ctx context.Context, request *agReq.EventCountsFilter) (*agRes.EventCounts, error)

CollectEventTaskCounts - collect the event task counts from all the components

func (*EventFeedAggregate) CollectEventTypeCounts

func (eventFeedAggregate *EventFeedAggregate) CollectEventTypeCounts(
	ctx context.Context, request *agReq.EventCountsFilter) (*agRes.EventCounts, error)

CollectEventTypeCounts - collect the event type counts from all the components

Jump to

Keyboard shortcuts

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