Documentation ¶
Index ¶
- type EventFeedAggregate
- func (eventFeedAggregate *EventFeedAggregate) CollectEventFeed(ctx context.Context, request *agReq.GetEventFeedRequest) (*agRes.GetEventFeedResponse, error)
- func (eventFeedAggregate *EventFeedAggregate) CollectEventGuitarStrings(ctx context.Context, request *agReq.GetEventStringBucketsRequest) (*agRes.GetEventStringBucketsResponse, error)
- func (eventFeedAggregate *EventFeedAggregate) CollectEventTaskCounts(ctx context.Context, request *agReq.GetEventTaskCountsRequest) (*agRes.GetEventTaskCountsResponse, error)
- func (eventFeedAggregate *EventFeedAggregate) CollectEventTypeCounts(ctx context.Context, request *agReq.GetEventTypeCountsRequest) (*agRes.GetEventTypeCountsResponse, error)
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(feedClient event_feed_api.EventFeedServiceClient) *EventFeedAggregate
func (*EventFeedAggregate) CollectEventFeed ¶
func (eventFeedAggregate *EventFeedAggregate) CollectEventFeed(ctx context.Context, request *agReq.GetEventFeedRequest) (*agRes.GetEventFeedResponse, 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.GetEventStringBucketsRequest) (*agRes.GetEventStringBucketsResponse, 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.GetEventTaskCountsRequest) (*agRes.GetEventTaskCountsResponse, error)
CollectEventTaskCounts - collect the event task counts from all the components
func (*EventFeedAggregate) CollectEventTypeCounts ¶
func (eventFeedAggregate *EventFeedAggregate) CollectEventTypeCounts( ctx context.Context, request *agReq.GetEventTypeCountsRequest) (*agRes.GetEventTypeCountsResponse, error)
CollectEventTypeCounts - collect the event type counts from all the components