Documentation ¶
Index ¶
- type AvgRow
- type AvgRowCollection
- type Commerce
- type CommerceController
- func (c *CommerceController) Actions(ctx *app.ActionsCommerceContext) error
- func (c *CommerceController) Categories(ctx *app.CategoriesCommerceContext) error
- func (c *CommerceController) Count(ctx *app.CountCommerceContext) error
- func (c *CommerceController) CountStep(ctx *app.CountStepCommerceContext) error
- func (c *CommerceController) List(ctx *app.ListCommerceContext) error
- func (c *CommerceController) Sum(ctx *app.SumCommerceContext) error
- func (c *CommerceController) SumStep(ctx *app.SumStepCommerceContext) error
- type CommerceRowCollection
- type ConcurrentsController
- type CountHistogramItem
- type CountRow
- type CountRowCollection
- type Event
- type EventController
- func (c *EventController) Actions(ctx *app.ActionsEventsContext) error
- func (c *EventController) Categories(ctx *app.CategoriesEventsContext) error
- func (c *EventController) Count(ctx *app.CountEventsContext) error
- func (c *EventController) CountAction(ctx *app.CountActionEventsContext) error
- func (c *EventController) List(ctx *app.ListEventsContext) error
- func (c *EventController) Users(ctx *app.UsersEventsContext) error
- type EventRowCollection
- type JournalController
- type Pageview
- type PageviewController
- func (c *PageviewController) Actions(ctx *app.ActionsPageviewsContext) error
- func (c *PageviewController) Avg(ctx *app.AvgPageviewsContext) error
- func (c *PageviewController) Categories(ctx *app.CategoriesPageviewsContext) error
- func (c *PageviewController) Count(ctx *app.CountPageviewsContext) error
- func (c *PageviewController) List(ctx *app.ListPageviewsContext) error
- func (c *PageviewController) Sum(ctx *app.SumPageviewsContext) error
- func (c *PageviewController) Unique(ctx *app.UniquePageviewsContext) error
- type PageviewRow
- type PageviewRowCollection
- type Segment
- type SegmentBlueprintTable
- type SegmentBlueprintTableCollection
- type SegmentBlueprintTableCriterion
- type SegmentBlueprintTableCriterionCollection
- type SegmentCache
- type SegmentCollection
- type SegmentConfig
- type SegmentController
- func (c *SegmentController) CheckBrowser(ctx *app.CheckBrowserSegmentsContext) error
- func (c *SegmentController) CheckUser(ctx *app.CheckUserSegmentsContext) error
- func (c *SegmentController) Count(ctx *app.CountSegmentsContext) error
- func (c *SegmentController) CreateOrUpdate(ctx *app.CreateOrUpdateSegmentsContext) error
- func (c *SegmentController) Criteria(ctx *app.CriteriaSegmentsContext) error
- func (c *SegmentController) Get(ctx *app.GetSegmentsContext) error
- func (c *SegmentController) Groups(ctx *app.GroupsSegmentsContext) error
- func (c *SegmentController) List(ctx *app.ListSegmentsContext) error
- func (c *SegmentController) Related(ctx *app.RelatedSegmentsContext) error
- func (c *SegmentController) Users(ctx *app.UsersSegmentsContext) error
- type SegmentGroup
- type SegmentGroupCollection
- type SegmentType
- type SumRow
- type SumRowCollection
- type TimeHistogramItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvgRow ¶
AvgRow represent row with sum result.
func (AvgRow) ToMediaType ¶
ToMediaType converts internal AvgRow representation to application one.
type AvgRowCollection ¶
type AvgRowCollection model.AvgRowCollection
AvgRowCollection is the collection of sum rows.
func (AvgRowCollection) ToMediaType ¶
func (arc AvgRowCollection) ToMediaType() app.AvgCollection
ToMediaType converts internal AvgRowCollection representation to application one.
type CommerceController ¶
type CommerceController struct { *goa.Controller CommerceStorage model.CommerceStorage }
CommerceController implements the event resource.
func NewCommerceController ¶
func NewCommerceController(service *goa.Service, cs model.CommerceStorage) *CommerceController
NewCommerceController creates a commerce controller.
func (*CommerceController) Actions ¶
func (c *CommerceController) Actions(ctx *app.ActionsCommerceContext) error
Actions runs the action action. :)
func (*CommerceController) Categories ¶
func (c *CommerceController) Categories(ctx *app.CategoriesCommerceContext) error
Categories runs the categories action.
func (*CommerceController) Count ¶
func (c *CommerceController) Count(ctx *app.CountCommerceContext) error
Count runs the count action.
func (*CommerceController) CountStep ¶
func (c *CommerceController) CountStep(ctx *app.CountStepCommerceContext) error
CountStep runs the count action with step parameter
func (*CommerceController) List ¶
func (c *CommerceController) List(ctx *app.ListCommerceContext) error
List runs the list action.
func (*CommerceController) Sum ¶
func (c *CommerceController) Sum(ctx *app.SumCommerceContext) error
Sum runs the sum action
func (*CommerceController) SumStep ¶
func (c *CommerceController) SumStep(ctx *app.SumStepCommerceContext) error
SumStep runs the sum action for particular step
type CommerceRowCollection ¶
type CommerceRowCollection model.CommerceRowCollection
CommerceRowCollection is the collection of Commerce events bucketed by tags.
func (CommerceRowCollection) ToMediaType ¶
func (crc CommerceRowCollection) ToMediaType() (app.CommercesCollection, error)
ToMediaType converts internal CommerceCollection representation to application one.
type ConcurrentsController ¶
type ConcurrentsController struct { *goa.Controller ConcurrentsStorage model.ConcurrentsStorage }
ConcurrentsController implements the event resource.
func NewConcurrentsController ¶
func NewConcurrentsController(service *goa.Service, cs model.ConcurrentsStorage) *ConcurrentsController
NewConcurrentsController creates a concurrent controller.
func (*ConcurrentsController) Count ¶
func (c *ConcurrentsController) Count(ctx *app.CountConcurrentsContext) error
Count runs the count action.
type CountHistogramItem ¶
type CountHistogramItem model.CountHistogramItem
CountHistogramItem represent row with count-based histogram data.
func (CountHistogramItem) ToMediaType ¶
func (chi CountHistogramItem) ToMediaType() *app.CountHistogram
ToMediaType converts internal CountHistogramItem representation to application one.
type CountRow ¶
CountRow represent row with count result.
func (CountRow) ToMediaType ¶
ToMediaType converts internal CountRow representation to application one.
type CountRowCollection ¶
type CountRowCollection model.CountRowCollection
CountRowCollection is the collection of count rows.
func (CountRowCollection) ToMediaType ¶
func (crc CountRowCollection) ToMediaType() app.CountCollection
ToMediaType converts internal CountRowCollection representation to application one.
type EventController ¶
type EventController struct { *goa.Controller EventStorage model.EventStorage }
EventController implements the event resource.
func NewEventController ¶
func NewEventController(service *goa.Service, es model.EventStorage) *EventController
NewEventController creates an event controller.
func (*EventController) Actions ¶
func (c *EventController) Actions(ctx *app.ActionsEventsContext) error
Actions runs the action action. :)
func (*EventController) Categories ¶
func (c *EventController) Categories(ctx *app.CategoriesEventsContext) error
Categories runs the categories action.
func (*EventController) Count ¶
func (c *EventController) Count(ctx *app.CountEventsContext) error
Count runs the count action
func (*EventController) CountAction ¶
func (c *EventController) CountAction(ctx *app.CountActionEventsContext) error
CountAction runs the count action, action and category has to be specified
func (*EventController) List ¶
func (c *EventController) List(ctx *app.ListEventsContext) error
List runs the list action.
func (*EventController) Users ¶
func (c *EventController) Users(ctx *app.UsersEventsContext) error
Users runs the users action.
type EventRowCollection ¶
type EventRowCollection model.EventRowCollection
EventRowCollection is the collection of Events bucketed by tags.
func (EventRowCollection) ToMediaType ¶
func (erc EventRowCollection) ToMediaType() (app.EventsCollection, error)
ToMediaType converts internal EventCollection representation to application one.
type JournalController ¶
type JournalController struct { *goa.Controller EventStorage model.EventStorage CommerceStorage model.CommerceStorage PageviewStorage model.PageviewStorage }
JournalController implements the journal resource.
func NewJournalController ¶
func NewJournalController(service *goa.Service, es model.EventStorage, cs model.CommerceStorage, ps model.PageviewStorage) *JournalController
NewJournalController creates an journal controller.
func (*JournalController) Flags ¶
func (c *JournalController) Flags(ctx *app.FlagsJournalContext) error
Flags runs the flags action.
type PageviewController ¶
type PageviewController struct { *goa.Controller PageviewStorage model.PageviewStorage }
PageviewController implements the event resource.
func NewPageviewController ¶
func NewPageviewController(service *goa.Service, ps model.PageviewStorage) *PageviewController
NewPageviewController creates a pageview controller.
func (*PageviewController) Actions ¶
func (c *PageviewController) Actions(ctx *app.ActionsPageviewsContext) error
Actions runs the action action. :)
func (*PageviewController) Avg ¶
func (c *PageviewController) Avg(ctx *app.AvgPageviewsContext) error
Avg runs the avg action.
func (*PageviewController) Categories ¶
func (c *PageviewController) Categories(ctx *app.CategoriesPageviewsContext) error
Categories runs the categories action.
func (*PageviewController) Count ¶
func (c *PageviewController) Count(ctx *app.CountPageviewsContext) error
Count runs the count action.
func (*PageviewController) List ¶
func (c *PageviewController) List(ctx *app.ListPageviewsContext) error
List runs the list action.
func (*PageviewController) Sum ¶
func (c *PageviewController) Sum(ctx *app.SumPageviewsContext) error
Sum runs the sum action.
func (*PageviewController) Unique ¶
func (c *PageviewController) Unique(ctx *app.UniquePageviewsContext) error
Unique runs the cardinality count action.
type PageviewRow ¶
type PageviewRow model.PageviewRow
PageviewRow represent tracked pageview data with tags.
type PageviewRowCollection ¶
type PageviewRowCollection model.PageviewRowCollection
PageviewRowCollection is the collection of PageviewRow events.
func (PageviewRowCollection) ToMediaType ¶
func (prc PageviewRowCollection) ToMediaType() (app.PageviewsCollection, error)
ToMediaType converts internal PageviewRowCollection representation to application one.
type Segment ¶
Segment represents segment information stored in storage.
func (*Segment) ToExtendedMediaType ¶
func (s *Segment) ToExtendedMediaType(segmentURL string) *app.SegmentExtended
ToExtendedMediaType converts internal Segment representation to extended view of application segment.
func (*Segment) ToMediaType ¶
ToMediaType converts internal Segment representation to application one.
func (*Segment) ToSegmenterMediaType ¶
func (s *Segment) ToSegmenterMediaType() (*app.SegmentSegmenter, error)
ToSegmenterMediaType converts internal Segment representation to segmenter view of application segment.
func (*Segment) ToTinyMediaType ¶
func (s *Segment) ToTinyMediaType() *app.SegmentTiny
ToTinyMediaType converts internal Segment representation to tiny view of application segment.
type SegmentBlueprintTable ¶
type SegmentBlueprintTable model.SegmentBlueprintTable
SegmentBlueprintTable represents blueprint of one segment table.
func (*SegmentBlueprintTable) ToMediaType ¶
func (sbt *SegmentBlueprintTable) ToMediaType() *app.SegmentBlueprintTable
ToMediaType converts internal SegmentBlueprint representation to application one.
type SegmentBlueprintTableCollection ¶
type SegmentBlueprintTableCollection model.SegmentBlueprintTableCollection
SegmentBlueprintTableCollection is the collection of SegmentBlueprintTable.
func (SegmentBlueprintTableCollection) ToMediaType ¶
func (sbtc SegmentBlueprintTableCollection) ToMediaType() app.SegmentBlueprintTableCollection
ToMediaType converts internal SegmentBlueprintTableCollection representation to application one.
type SegmentBlueprintTableCriterion ¶
type SegmentBlueprintTableCriterion model.SegmentBlueprintTableCriterion
SegmentBlueprintTableCriterion represents criterion of one field of table available for segment.
func (*SegmentBlueprintTableCriterion) ToMediaType ¶
func (sbc *SegmentBlueprintTableCriterion) ToMediaType() *app.SegmentBlueprintTableCriterion
ToMediaType converts internal SegmentBlueprintTableCriterion representation to application one.
type SegmentBlueprintTableCriterionCollection ¶
type SegmentBlueprintTableCriterionCollection model.SegmentBlueprintTableCriterionCollection
SegmentBlueprintTableCriterionCollection is the collection of SegmentBlueprintTableCriterion.
func (SegmentBlueprintTableCriterionCollection) ToMediaType ¶
func (sbcc SegmentBlueprintTableCriterionCollection) ToMediaType() app.SegmentBlueprintTableCriterionCollection
ToMediaType converts internal SegmentBlueprintTableCriterionCollection representation to application one.
type SegmentCache ¶
type SegmentCache model.SegmentCache
SegmentCache represent cache object for count of events of SegmentRules.
func (SegmentCache) ToMediaType ¶
func (sc SegmentCache) ToMediaType() map[int]*app.SegmentRuleCache
ToMediaType converts internal PageviewRowCollection representation to application one.
type SegmentCollection ¶
type SegmentCollection model.SegmentCollection
SegmentCollection is the collection of Segments.
func (SegmentCollection) ToExtendedMediaType ¶
func (sc SegmentCollection) ToExtendedMediaType(segmentURL string) app.SegmentExtendedCollection
ToExtendedMediaType converts internal SegmentCollection representation to extended view of application segment collection.
func (SegmentCollection) ToMediaType ¶
func (sc SegmentCollection) ToMediaType() (app.SegmentCollection, error)
ToMediaType converts internal SegmentCollection representation to application one.
func (SegmentCollection) ToTinyMediaType ¶
func (sc SegmentCollection) ToTinyMediaType() app.SegmentTinyCollection
ToTinyMediaType converts internal SegmentCollection representation to tiny view of application segment collection.
type SegmentConfig ¶
type SegmentConfig struct {
URLEdit string
}
SegmentConfig represent configuration settings of Segment controller.
type SegmentController ¶
type SegmentController struct { *goa.Controller SegmentStorage model.SegmentStorage SegmentBlueprintStorage model.SegmentBlueprintStorage Config SegmentConfig }
SegmentController implements the segment resource.
func NewSegmentController ¶
func NewSegmentController( service *goa.Service, segmentStorage model.SegmentStorage, segmentBlueprintStorage model.SegmentBlueprintStorage, config SegmentConfig, ) *SegmentController
NewSegmentController creates a segment controller.
func (*SegmentController) CheckBrowser ¶
func (c *SegmentController) CheckBrowser(ctx *app.CheckBrowserSegmentsContext) error
CheckBrowser runs the check_browser action.
func (*SegmentController) CheckUser ¶
func (c *SegmentController) CheckUser(ctx *app.CheckUserSegmentsContext) error
CheckUser runs the check_user action.
func (*SegmentController) Count ¶
func (c *SegmentController) Count(ctx *app.CountSegmentsContext) error
Count runs the count action.
func (*SegmentController) CreateOrUpdate ¶
func (c *SegmentController) CreateOrUpdate(ctx *app.CreateOrUpdateSegmentsContext) error
CreateOrUpdate runs the create_or_update action.
func (*SegmentController) Criteria ¶
func (c *SegmentController) Criteria(ctx *app.CriteriaSegmentsContext) error
Criteria runs the criteria action.
func (*SegmentController) Get ¶
func (c *SegmentController) Get(ctx *app.GetSegmentsContext) error
Get runs the get action.
func (*SegmentController) Groups ¶
func (c *SegmentController) Groups(ctx *app.GroupsSegmentsContext) error
Groups runs the groups action.
func (*SegmentController) List ¶
func (c *SegmentController) List(ctx *app.ListSegmentsContext) error
List runs the list action.
func (*SegmentController) Related ¶
func (c *SegmentController) Related(ctx *app.RelatedSegmentsContext) error
Related runs the related action.
func (*SegmentController) Users ¶
func (c *SegmentController) Users(ctx *app.UsersSegmentsContext) error
Users runs the users action.
type SegmentGroup ¶
type SegmentGroup model.SegmentGroup
SegmentGroup represents segment group information stored in storage.
func (*SegmentGroup) ToMediaType ¶
func (sg *SegmentGroup) ToMediaType() *app.SegmentGroup
ToMediaType converts internal Segment representation to application one.
type SegmentGroupCollection ¶
type SegmentGroupCollection model.SegmentGroupCollection
SegmentGroupCollection is the collection of SegmentsGroups.
func (SegmentGroupCollection) ToMediaType ¶
func (sgc SegmentGroupCollection) ToMediaType() app.SegmentGroupCollection
ToMediaType converts internal SegmentCollection representation to application one.
type SegmentType ¶
type SegmentType int
SegmentType represents type of segment (source of data used for segment)
const ( UserSegment SegmentType = iota + 1 BrowserSegment )
Enum of available segment types
type SumRow ¶
SumRow represent row with sum result.
func (SumRow) ToMediaType ¶
ToMediaType converts internal SumRow representation to application one.
type SumRowCollection ¶
type SumRowCollection model.SumRowCollection
SumRowCollection is the collection of sum rows.
func (SumRowCollection) ToMediaType ¶
func (src SumRowCollection) ToMediaType() app.SumCollection
ToMediaType converts internal SumRowCollection representation to application one.
type TimeHistogramItem ¶
type TimeHistogramItem model.TimeHistogramItem
TimeHistogramItem represent row with date time histogram data.
func (TimeHistogramItem) ToMediaType ¶
func (thi TimeHistogramItem) ToMediaType() *app.TimeHistogram
ToMediaType converts internal TimeHistogramItem representation to application one.