controller

package
v0.0.0-...-efb7428 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvgRow

type AvgRow model.AvgRow

AvgRow represent row with sum result.

func (AvgRow) ToMediaType

func (ar AvgRow) ToMediaType() *app.Avg

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 Commerce

type Commerce model.Commerce

Commerce represent tracked commerce events data.

func (*Commerce) ToMediaType

func (c *Commerce) ToMediaType() (*app.Commerce, error)

ToMediaType converts internal Commerce 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

Actions runs the action action. :)

func (*CommerceController) Categories

Categories runs the categories action.

func (*CommerceController) Count

Count runs the count action.

func (*CommerceController) CountStep

CountStep runs the count action with step parameter

func (*CommerceController) List

List runs the list action.

func (*CommerceController) Sum

Sum runs the sum action

func (*CommerceController) SumStep

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

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

type CountRow model.CountRow

CountRow represent row with count result.

func (CountRow) ToMediaType

func (cr CountRow) ToMediaType() *app.Count

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 Event

type Event model.Event

Event represent tracked generic events data.

func (*Event) ToMediaType

func (e *Event) ToMediaType() (*app.Event, error)

ToMediaType converts internal Event 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

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

List runs the list action.

func (*EventController) Users

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

Flags runs the flags action.

type Pageview

type Pageview model.Pageview

Pageview represent tracked Pageview events data.

func (*Pageview) ToMediaType

func (p *Pageview) ToMediaType() (*app.Pageview, error)

ToMediaType converts internal PageviewRow representation to application one.

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

Actions runs the action action. :)

func (*PageviewController) Avg

Avg runs the avg action.

func (*PageviewController) Categories

Categories runs the categories action.

func (*PageviewController) Count

Count runs the count action.

func (*PageviewController) List

List runs the list action.

func (*PageviewController) Sum

Sum runs the sum action.

func (*PageviewController) Unique

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

type Segment model.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

func (s *Segment) ToMediaType() (*app.Segment, error)

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

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

ToMediaType converts internal SegmentBlueprintTableCriterion representation to application one.

type SegmentBlueprintTableCriterionCollection

type SegmentBlueprintTableCriterionCollection model.SegmentBlueprintTableCriterionCollection

SegmentBlueprintTableCriterionCollection is the collection of SegmentBlueprintTableCriterion.

func (SegmentBlueprintTableCriterionCollection) ToMediaType

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

CheckBrowser runs the check_browser action.

func (*SegmentController) CheckUser

CheckUser runs the check_user action.

func (*SegmentController) Count

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

Criteria runs the criteria action.

func (*SegmentController) Get

Get runs the get action.

func (*SegmentController) Groups

Groups runs the groups action.

func (*SegmentController) List

List runs the list action.

func (*SegmentController) Related

Related runs the related action.

func (*SegmentController) Users

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

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

type SumRow model.SumRow

SumRow represent row with sum result.

func (SumRow) ToMediaType

func (sr SumRow) ToMediaType() *app.Sum

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.

Jump to

Keyboard shortcuts

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