logics

package
v0.0.0-...-cb472e6 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logic

type Logic struct {
	*backbone.Engine
}

type Logics

type Logics struct {
	*backbone.Engine

	ErrHandle errors.DefaultCCErrorIf

	AuthManager *extensions.AuthManager
	// contains filtered or unexported fields
}

func NewLogics

func NewLogics(b *backbone.Engine, header http.Header, authManager *extensions.AuthManager, spec string) *Logics

NewLogics get logics handle

func (*Logics) CheckTableExist

func (lgc *Logics) CheckTableExist(ctx context.Context)

CheckTableExist 检测cc_chartData集合是否存在

func (*Logics) CreateInnerChart

func (lgc *Logics) CreateInnerChart(kit *rest.Kit, chartInfo *metadata.ChartConfig) (uint64, error)

func (*Logics) GetBizHostCount

func (lgc *Logics) GetBizHostCount(kit *rest.Kit) ([]metadata.StringIDCount, error)

func (*Logics) GetModelAndInstCount

func (lgc *Logics) GetModelAndInstCount(kit *rest.Kit) ([]metadata.StringIDCount, error)

func (*Logics) InnerChartData

func (lgc *Logics) InnerChartData(kit *rest.Kit, chartInfo metadata.ChartConfig) (interface{}, error)

func (*Logics) NewFromHeader

func (lgc *Logics) NewFromHeader(header http.Header) *Logics

NewFromHeader new Logic from header

func (*Logics) TimerFreshData

func (lgc *Logics) TimerFreshData(ctx context.Context)

Jump to

Keyboard shortcuts

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