Documentation ¶
Index ¶
- Constants
- Variables
- func ClearCacheByAppid(key string) (err error)
- func GetAnalysisRes(i Ianalysis) (res interface{}, err error)
- type AttributeName
- type BehaviorAnalysisService
- func (this *BehaviorAnalysisService) GetConfigs(appid int) (eventNameList []response.MetaEventListRes, ...)
- func (this *BehaviorAnalysisService) GetValues(appid string, table string, col string, reqData []byte) (values []ValueStruct, err error)
- func (this *BehaviorAnalysisService) LoadPropQuotas(reqData request.LoadPropQuotasReq) (attributeNameList []AttributeName, err error)
- type Cache
- type Command
- type Event
- func (this *Event) GetExecSql() (SQL string, allArgs []interface{}, err error)
- func (this *Event) GetFilterDateSql() (SQL string, args []interface{})
- func (this *Event) GetGroupDateSql() (groupSQL string, groupCol string)
- func (this *Event) GetGroupSql() (groupSql []string, groupCol []string)
- func (this *Event) GetList() (interface{}, error)
- type Funnel
- type FunnelGroupRes
- type FunnelRes
- type Ianalysis
- func NewAnalysisByCommand(command Command, reqData []byte) (i Ianalysis, err error)
- func NewEvent(reqData []byte) (Ianalysis, error)
- func NewFunnel(reqData []byte) (Ianalysis, error)
- func NewRetention(reqData []byte) (Ianalysis, error)
- func NewTrace(reqData []byte) (Ianalysis, error)
- func NewUserAttr(reqData []byte) (Ianalysis, error)
- func NewUserEventCountList(reqData []byte) (Ianalysis, error)
- func NewUserEventDetailList(reqData []byte) (Ianalysis, error)
- func NewUserList(reqData []byte) (Ianalysis, error)
- type Retention
- type Trace
- type UserAttr
- type UserEventCount
- type UserEventDetail
- type UserList
- type ValueStruct
Constants ¶
View Source
const ( ByDay = "按天" ByMinute = "按分钟" ByHour = "按小时" ByWeek = "按周" Monthly = "按月" ByTotal = "合计" )
View Source
const ( Zhibiao = 1 Formula = 2 )
View Source
const ( TimeError int = 60001 ZhiBiaoNumError int = 60002 GroupNumError int = 60003 GroupEmptyError int = 60004 UIEmptyError int = 60005 EventNameEmptyError int = 60006 )
内置异常
View Source
const ChartSql int = 1
View Source
const TableSql int = 2
Variables ¶
View Source
var ERROR_TABLE = map[int]string{ TimeError: "筛选时间异常", ZhiBiaoNumError: "筛选指标个数异常", GroupNumError: "筛选分组个数异常", GroupEmptyError: "筛选分组不能为空字段", UIEmptyError: "用户id列表不能为空", EventNameEmptyError: "事件名不能为空", }
内置异常表
Functions ¶
func ClearCacheByAppid ¶
func GetAnalysisRes ¶
Types ¶
type AttributeName ¶
type BehaviorAnalysisService ¶
type BehaviorAnalysisService struct { }
func (*BehaviorAnalysisService) GetConfigs ¶
func (this *BehaviorAnalysisService) GetConfigs(appid int) (eventNameList []response.MetaEventListRes, attributeMap map[int][]response.AttributeRes, err error)
func (*BehaviorAnalysisService) GetValues ¶
func (this *BehaviorAnalysisService) GetValues(appid string, table string, col string, reqData []byte) (values []ValueStruct, err error)
func (*BehaviorAnalysisService) LoadPropQuotas ¶
func (this *BehaviorAnalysisService) LoadPropQuotas(reqData request.LoadPropQuotasReq) (attributeNameList []AttributeName, err error)
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func (*Event) GetExecSql ¶
func (*Event) GetFilterDateSql ¶
func (*Event) GetGroupDateSql ¶
func (*Event) GetGroupSql ¶
type Funnel ¶
type Funnel struct {
// contains filtered or unexported fields
}
func (*Funnel) GetExecSql ¶
type FunnelGroupRes ¶
type FunnelGroupRes struct { Groupkey sql.NullString `json:"groupkey" db:"groupkey"` LevelIndex int `json:"level_index" db:"level_index"` UI []string `json:"ui" db:"ui"` Count int `json:"count" db:"count"` }
type Ianalysis ¶
type Ianalysis interface { GetList() (interface{}, error) GetExecSql() (SQL string, allArgs []interface{}, err error) //后续开发 查看执行sql功能 }
func NewAnalysisByCommand ¶
func NewRetention ¶
func NewUserAttr ¶
func NewUserEventCountList ¶
func NewUserEventDetailList ¶
func NewUserList ¶
type Retention ¶
type Retention struct {
// contains filtered or unexported fields
}
func (*Retention) GetExecSql ¶
type Trace ¶
type Trace struct {
// contains filtered or unexported fields
}
func (*Trace) GetChartSql ¶
func (*Trace) GetExecSql ¶
func (*Trace) GetTableSql ¶
type UserAttr ¶
type UserAttr struct {
// contains filtered or unexported fields
}
func (*UserAttr) GetExecSql ¶
func (*UserAttr) UserCountSql ¶
type UserEventCount ¶
type UserEventCount struct {
// contains filtered or unexported fields
}
func (*UserEventCount) GetExecSql ¶
func (this *UserEventCount) GetExecSql() (SQL string, allArgs []interface{}, err error)
func (*UserEventCount) GetGroupDateSql ¶
func (this *UserEventCount) GetGroupDateSql() (groupSQL string, groupCol string)
func (*UserEventCount) GetList ¶
func (this *UserEventCount) GetList() (interface{}, error)
type UserEventDetail ¶
type UserEventDetail struct {
// contains filtered or unexported fields
}
func (*UserEventDetail) GetExecSql ¶
func (this *UserEventDetail) GetExecSql() (SQL string, allArgs []interface{}, err error)
func (*UserEventDetail) GetList ¶
func (this *UserEventDetail) GetList() (interface{}, error)
type UserList ¶
type UserList struct {
// contains filtered or unexported fields
}
func (*UserList) GetExecSql ¶
type ValueStruct ¶
type ValueStruct struct {
Value interface{} `json:"value" db:"value"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.