controller

package
Version: v0.0.0-...-d72ca28 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LayoutFile    = "layout.html"
	AppBasePath   = func(dir string, err error) string { return dir }(os.Getwd())
	DATA_PATH     = filepath.Join(AppBasePath, "data")
	CONFIG_PATH   = filepath.Join(AppBasePath, "config")
	MenuList      = []string{}
	ServerAddress = ""
	NotAvailLimit = map[string]float64{}
	AppMuxSync    = sync.Mutex{}
)
View Source
var (
	DefaultIncludes = []string{"_head.html", "_menu.html", "_loader.html", "_script_template.html", "_dateinfo.html"}
)
View Source
var (
	WindRoseResult []toolkit.M
)

Functions

func CheckData

func CheckData(tmpResult []tk.M, filter []*dbox.Filter, header map[string]string, tipe string) (result []tk.M, err error)

func DeserializeData

func DeserializeData(data []tk.M, typeExcel, CreateDateTime string, header, fieldList []string, turbinename map[string]string) error

func FloatToString

func FloatToString(input_num float64) string

func FormatThousandSeparator

func FormatThousandSeparator(floatString string) string

func GenerateWindRose

func GenerateWindRose(data []MiniScadaHFD, tipe, turbineVal string) tk.M

func GetAlarmCodesMail

func GetAlarmCodesMail() (result []toolkit.M, e error)

func GetCategoryMail

func GetCategoryMail() (result []toolkit.M, e error)

func GetCustomFieldList

func GetCustomFieldList() []tk.M

func GetDataAvailability

func GetDataAvailability(datalastmonth []ScadaSummaryByMonth, projectname string) []interface{}

func GetDirection

func GetDirection(windDir float64, nacelPos float64, breakDown int) (int, int)

func GetHFDCustomFieldList

func GetHFDCustomFieldList() []tk.M

test commit

func GetHFDDataRev

func GetHFDDataRev(project string, turbine string, tStart time.Time, tEnd time.Time, tags []string, secTags []string) (result []tk.M, empty []tk.M, e error)

func GetLastDateData

func GetLastDateData() (result time.Time)

func GetMetTowerData

func GetMetTowerData(p *PayloadAnalytic, k *knot.WebContext) []tk.M

func GetMonitoringAllProject

func GetMonitoringAllProject(project string, locationTemp float64, pageType string) (rtkm tk.M)

func GetMonitoringByFarm

func GetMonitoringByFarm(project string, locationTemp float64) (rtkm tk.M)

func GetMonitoringByProjectV2

func GetMonitoringByProjectV2(project string, locationTemp float64, pageType string) (rtkm tk.M)

func GetRepeatedAlarm

func GetRepeatedAlarm(project string, t0 time.Time) (res tk.M)

func GetScadaData

func GetScadaData(turbineName map[string]string, turbineNameSorted, turbineIDSorted []string, queryT []*dbox.Filter,
	tipe string, withMet bool) ([]tk.M, []string)

func GetScadaDataLahori

func GetScadaDataLahori(turbineName map[string]string, turbineNameSorted, turbineIDSorted []string, queryT []*dbox.Filter,
	tipe string, tStart, tEnd time.Time) ([]tk.M, []string)

func GetScadaHFDHeader

func GetScadaHFDHeader() (headerResult []string, fieldResult []string)

func GetScadaOEMHeader

func GetScadaOEMHeader() (headerResult []string, fieldResult []string)

func GetTemplateMail

func GetTemplateMail() (result toolkit.M, e error)

func GetTurbineNameForPC

func GetTurbineNameForPC(turbineIDList []interface{}) (turbineName, turbineProject map[string]string, err error)

func GetTurbineStatus

func GetTurbineStatus(project string, turbine string) (res map[string]TurbineStatus)

func GetUserLoginDetails

func GetUserLoginDetails(k *knot.WebContext) (tUser acl.User, err error)

func GetUserMail

func GetUserMail() (result []toolkit.M, e error)

func GetWsCategory

func GetWsCategory(ws float64) (int, string)

func MixDataIfAny

func MixDataIfAny(ilist []tk.M, pipes []tk.M, tname string) (list []tk.M)

func SecondsToHms

func SecondsToHms(d float64) string

func SendEmail

func SendEmail(templateID string) error

Types

type AccessController

type AccessController struct {
	App
}

func CreateAccessController

func CreateAccessController() *AccessController

func (*AccessController) DeleteAccess

func (a *AccessController) DeleteAccess(r *knot.WebContext) interface{}

func (*AccessController) EditAccess

func (a *AccessController) EditAccess(r *knot.WebContext) interface{}

func (*AccessController) GetAccess

func (a *AccessController) GetAccess(r *knot.WebContext) interface{}

func (*AccessController) GetParentID

func (a *AccessController) GetParentID(r *knot.WebContext) interface{}

func (*AccessController) Getaccessdropdown

func (a *AccessController) Getaccessdropdown(r *knot.WebContext) interface{}

func (*AccessController) SaveAccess

func (a *AccessController) SaveAccess(r *knot.WebContext) interface{}

type AlarmPayloads

type AlarmPayloads struct {
	Turbine   []interface{}
	DateStart time.Time
	DateEnd   time.Time
	Skip      int
	Take      int
	Sort      []AlarmSorting
	Project   string
	Period    string
	Tipe      string
	Filter    []helper.Filter
}

type AlarmSorting

type AlarmSorting struct {
	Field string
	Dir   string
}

type AnalyticAvailabilityController

type AnalyticAvailabilityController struct {
	App
}

func CreateAnalyticAvailabilityController

func CreateAnalyticAvailabilityController() *AnalyticAvailabilityController

func (*AnalyticAvailabilityController) GetData

func (m *AnalyticAvailabilityController) GetData(k *knot.WebContext) interface{}

type AnalyticComparisonController

type AnalyticComparisonController struct {
	App
}

func CreateAnalyticComparisonController

func CreateAnalyticComparisonController() *AnalyticComparisonController

func (*AnalyticComparisonController) GetData

func (m *AnalyticComparisonController) GetData(k *knot.WebContext) interface{}

type AnalyticDgrReportController

type AnalyticDgrReportController struct {
	App
}

func CreateAnalyticDgrReportController

func CreateAnalyticDgrReportController() *AnalyticDgrReportController

func (*AnalyticDgrReportController) GetList

func (m *AnalyticDgrReportController) GetList(k *knot.WebContext) interface{}

type AnalyticDgrScadaController

type AnalyticDgrScadaController struct {
	App
}

func CreateAnalyticDgrScadaController

func CreateAnalyticDgrScadaController() *AnalyticDgrScadaController

func (*AnalyticDgrScadaController) GetData

func (m *AnalyticDgrScadaController) GetData(k *knot.WebContext) interface{}

func (*AnalyticDgrScadaController) GetDataRev

func (m *AnalyticDgrScadaController) GetDataRev(k *knot.WebContext) interface{}

type AnalyticHistogramController

type AnalyticHistogramController struct {
	App
}

func CreateAnalyticHistogramController

func CreateAnalyticHistogramController() *AnalyticHistogramController

func (*AnalyticHistogramController) GetHistogramData

func (m *AnalyticHistogramController) GetHistogramData(k *knot.WebContext) interface{}

type AnalyticKeyMetrics

type AnalyticKeyMetrics struct {
	App
}

func CreateAnalyticKeyMetricsController

func CreateAnalyticKeyMetricsController() *AnalyticKeyMetrics

func (*AnalyticKeyMetrics) GetKeyMetrics

func (m *AnalyticKeyMetrics) GetKeyMetrics(k *knot.WebContext) interface{}

type AnalyticKpiController

type AnalyticKpiController struct {
	App
}

func CreateAnalyticKpiController

func CreateAnalyticKpiController() *AnalyticKpiController

func (*AnalyticKpiController) GetScadaSummaryList

func (m *AnalyticKpiController) GetScadaSummaryList(k *knot.WebContext) interface{}

type AnalyticLossAnalysisController

type AnalyticLossAnalysisController struct {
	App
	// contains filtered or unexported fields
}

func CreateAnalyticLossAnalysisController

func CreateAnalyticLossAnalysisController() *AnalyticLossAnalysisController

func (*AnalyticLossAnalysisController) GetAvailDateAll

func (m *AnalyticLossAnalysisController) GetAvailDateAll(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetAvailDate_DRAFT

func (m *AnalyticLossAnalysisController) GetAvailDate_DRAFT(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetComponentAlarmTab

func (m *AnalyticLossAnalysisController) GetComponentAlarmTab(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetDowntimeTabDuration

func (m *AnalyticLossAnalysisController) GetDowntimeTabDuration(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetDowntimeTabFreq

func (m *AnalyticLossAnalysisController) GetDowntimeTabFreq(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetDowntimeTabLoss

func (m *AnalyticLossAnalysisController) GetDowntimeTabLoss(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetEventAnalysisTab

func (m *AnalyticLossAnalysisController) GetEventAnalysisTab(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetFrequencyTab

func (m *AnalyticLossAnalysisController) GetFrequencyTab(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetHistogramData

func (m *AnalyticLossAnalysisController) GetHistogramData(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetHistogramProduction

func (m *AnalyticLossAnalysisController) GetHistogramProduction(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetLostEnergyTab

func (m *AnalyticLossAnalysisController) GetLostEnergyTab(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetMaxValTempTags

func (m *AnalyticLossAnalysisController) GetMaxValTempTags(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetProductionHistogramData

func (m *AnalyticLossAnalysisController) GetProductionHistogramData(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetScadaSummaryChart

func (m *AnalyticLossAnalysisController) GetScadaSummaryChart(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetScadaSummaryList

func (m *AnalyticLossAnalysisController) GetScadaSummaryList(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetTempHistogramData

func (m *AnalyticLossAnalysisController) GetTempHistogramData(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetTempTags

func (m *AnalyticLossAnalysisController) GetTempTags(k *knot.WebContext) interface{}

func (*AnalyticLossAnalysisController) GetWarning

func (m *AnalyticLossAnalysisController) GetWarning(k *knot.WebContext) interface{}

type AnalyticMeteorologyController

type AnalyticMeteorologyController struct {
	App
}

func CreateAnalyticMeteorologyController

func CreateAnalyticMeteorologyController() *AnalyticMeteorologyController

func (*AnalyticMeteorologyController) AverageWindSpeed

func (c *AnalyticMeteorologyController) AverageWindSpeed(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) GetEnergyCorrelation

func (m *AnalyticMeteorologyController) GetEnergyCorrelation(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) GetListMtbf

func (c *AnalyticMeteorologyController) GetListMtbf(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) GetTurbulenceIntensity

func (m *AnalyticMeteorologyController) GetTurbulenceIntensity(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) GetTurbulenceIntensityScatter

func (m *AnalyticMeteorologyController) GetTurbulenceIntensityScatter(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) GetWindCorrelation

func (m *AnalyticMeteorologyController) GetWindCorrelation(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) Graph1224

func (c *AnalyticMeteorologyController) Graph1224(k *knot.WebContext) interface{}

func (*AnalyticMeteorologyController) Table1224

func (c *AnalyticMeteorologyController) Table1224(k *knot.WebContext) interface{}

type AnalyticPerformanceIndexController

type AnalyticPerformanceIndexController struct {
	App
}

func CreateAnalyticPerformanceIndexController

func CreateAnalyticPerformanceIndexController() *AnalyticPerformanceIndexController

func (*AnalyticPerformanceIndexController) GetPerformanceIndex

func (m *AnalyticPerformanceIndexController) GetPerformanceIndex(k *knot.WebContext) interface{}

type AnalyticPowerCurveController

type AnalyticPowerCurveController struct {
	App
}

func CreateAnalyticPowerCurveController

func CreateAnalyticPowerCurveController() *AnalyticPowerCurveController

func (*AnalyticPowerCurveController) GenExcelPowerCurve

func (m *AnalyticPowerCurveController) GenExcelPowerCurve(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetDetails

func (m *AnalyticPowerCurveController) GetDetails(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetDownList

func (m *AnalyticPowerCurveController) GetDownList(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetList

func (m *AnalyticPowerCurveController) GetList(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetListDensity

func (m *AnalyticPowerCurveController) GetListDensity(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetListPowerCurveComparison

func (m *AnalyticPowerCurveController) GetListPowerCurveComparison(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetListPowerCurveMonthly

func (m *AnalyticPowerCurveController) GetListPowerCurveMonthly(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetListPowerCurveMonthlyScatter

func (m *AnalyticPowerCurveController) GetListPowerCurveMonthlyScatter(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetListPowerCurveScada

func (m *AnalyticPowerCurveController) GetListPowerCurveScada(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetPCScatterAnalysis

func (m *AnalyticPowerCurveController) GetPCScatterAnalysis(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetPCScatterFieldList

func (m *AnalyticPowerCurveController) GetPCScatterFieldList(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetPCScatterOperational

func (m *AnalyticPowerCurveController) GetPCScatterOperational(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetPowerCurve

func (m *AnalyticPowerCurveController) GetPowerCurve(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetPowerCurveScatter

func (m *AnalyticPowerCurveController) GetPowerCurveScatter(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetPowerCurveScatterRev

func (m *AnalyticPowerCurveController) GetPowerCurveScatterRev(k *knot.WebContext) interface{}

func (*AnalyticPowerCurveController) GetScatterComparison

func (m *AnalyticPowerCurveController) GetScatterComparison(k *knot.WebContext) interface{}

type AnalyticWRFlexiDetailController

type AnalyticWRFlexiDetailController struct {
	App
}

func CreateAnalyticWRFlexiDetailController

func CreateAnalyticWRFlexiDetailController() *AnalyticWRFlexiDetailController

func (*AnalyticWRFlexiDetailController) GetFlexiDataEachTurbine

func (m *AnalyticWRFlexiDetailController) GetFlexiDataEachTurbine(k *knot.WebContext) interface{}

type AnalyticWindAvailabilityController

type AnalyticWindAvailabilityController struct {
	App
}

func CreateAnalyticWindAvailabilityController

func CreateAnalyticWindAvailabilityController() *AnalyticWindAvailabilityController

func (*AnalyticWindAvailabilityController) GetData

func (m *AnalyticWindAvailabilityController) GetData(k *knot.WebContext) interface{}

type AnalyticWindDistributionController

type AnalyticWindDistributionController struct {
	App
}

func CreateAnalyticWindDistributionController

func CreateAnalyticWindDistributionController() *AnalyticWindDistributionController

func (*AnalyticWindDistributionController) GetList

func (m *AnalyticWindDistributionController) GetList(k *knot.WebContext) interface{}

type AnalyticWindRoseController

type AnalyticWindRoseController struct {
	App
}

func CreateAnalyticWindRoseController

func CreateAnalyticWindRoseController() *AnalyticWindRoseController

func (*AnalyticWindRoseController) GetFlexiDataEachTurbine

func (m *AnalyticWindRoseController) GetFlexiDataEachTurbine(k *knot.WebContext) interface{}

func (*AnalyticWindRoseController) GetWSCategory

func (m *AnalyticWindRoseController) GetWSCategory(k *knot.WebContext) interface{}

func (*AnalyticWindRoseController) GetWSData

func (m *AnalyticWindRoseController) GetWSData(k *knot.WebContext) interface{}

func (*AnalyticWindRoseController) GetWindRoseData

func (m *AnalyticWindRoseController) GetWindRoseData(k *knot.WebContext) interface{}

type AnalyticWindRoseDetailController

type AnalyticWindRoseDetailController struct {
	App
}

func CreateAnalyticWindRoseDetailController

func CreateAnalyticWindRoseDetailController() *AnalyticWindRoseDetailController

func (*AnalyticWindRoseDetailController) GetWSData

func (m *AnalyticWindRoseDetailController) GetWSData(k *knot.WebContext) interface{}

type AnalyticWindRoseFlexiController

type AnalyticWindRoseFlexiController struct {
	App
}

func CreateAnalyticWindRoseFlexiController

func CreateAnalyticWindRoseFlexiController() *AnalyticWindRoseFlexiController

func (*AnalyticWindRoseFlexiController) GetFlexiData

func (m *AnalyticWindRoseFlexiController) GetFlexiData(k *knot.WebContext) interface{}

func (*AnalyticWindRoseFlexiController) GetFlexiDataEachTurbine

func (m *AnalyticWindRoseFlexiController) GetFlexiDataEachTurbine(k *knot.WebContext) interface{}

type AnalyticWindRoseFlexiDetailController

type AnalyticWindRoseFlexiDetailController struct {
	App
}

func CreateAnalyticWindRoseFlexiDetailController

func CreateAnalyticWindRoseFlexiDetailController() *AnalyticWindRoseFlexiDetailController

func (*AnalyticWindRoseFlexiDetailController) GetFlexiDataEachTurbine

func (m *AnalyticWindRoseFlexiDetailController) GetFlexiDataEachTurbine(k *knot.WebContext) interface{}

type App

type App struct {
	Server *knot.Server
	Reff   toolkit.M
}

type Availdatedata

type Availdatedata struct {
	ScadaData         []time.Time
	DGRData           []time.Time
	Alarm             []time.Time
	JMR               []time.Time
	MET               []time.Time
	Duration          []time.Time
	ScadaAnomaly      []time.Time
	AlarmOverlapping  []time.Time
	AlarmScadaAnomaly []time.Time
	ScadaDataOEM      []time.Time
	ScadaDataHFD      []time.Time
	Warning           []time.Time
}

type ByTime

type ByTime []time.Time

func (ByTime) Len

func (b ByTime) Len() int

func (ByTime) Less

func (b ByTime) Less(i, j int) bool

func (ByTime) Swap

func (b ByTime) Swap(i, j int)

type ClusterWiseGeneration

type ClusterWiseGeneration struct {
	App
}

func CreateClusterWiseGenerationController

func CreateClusterWiseGenerationController() *ClusterWiseGeneration

func (*ClusterWiseGeneration) GetData

func (m *ClusterWiseGeneration) GetData(k *knot.WebContext) interface{}

func (*ClusterWiseGeneration) GetDataDGR

func (m *ClusterWiseGeneration) GetDataDGR(k *knot.WebContext) interface{}

func (*ClusterWiseGeneration) GetDataDGRCompare

func (m *ClusterWiseGeneration) GetDataDGRCompare(k *knot.WebContext) interface{}

type ContributeGroupResult

type ContributeGroupResult struct {
	WsCategoryNo   int
	WsCategoryDesc string
}

type ContributeItemResult

type ContributeItemResult struct {
	WsCategoryNo   int
	WsCategoryDesc string
	Hours          float64
	Contribution   float64
	Frequency      int
}

type DashboardController

type DashboardController struct {
	App
}

func CreateDashboardController

func CreateDashboardController() *DashboardController

func (*DashboardController) GetDashboardSummary

func (m *DashboardController) GetDashboardSummary(k *knot.WebContext) interface{}

func (*DashboardController) GetDetailLossLevel1

func (m *DashboardController) GetDetailLossLevel1(k *knot.WebContext) interface{}

func (*DashboardController) GetDetailLossLevel2

func (m *DashboardController) GetDetailLossLevel2(k *knot.WebContext) interface{}

func (*DashboardController) GetDetailProd

func (m *DashboardController) GetDetailProd(k *knot.WebContext) interface{}

func (*DashboardController) GetDetailProdLevel1

func (m *DashboardController) GetDetailProdLevel1(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTime

func (m *DashboardController) GetDownTime(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeFleetByDown

func (m *DashboardController) GetDownTimeFleetByDown(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeLoss

func (m *DashboardController) GetDownTimeLoss(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeLostEnergyDetail

func (m *DashboardController) GetDownTimeLostEnergyDetail(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeLostEnergyDetailTable

func (m *DashboardController) GetDownTimeLostEnergyDetailTable(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeTopDetail

func (m *DashboardController) GetDownTimeTopDetail(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeTopDetailTable

func (m *DashboardController) GetDownTimeTopDetailTable(k *knot.WebContext) interface{}

func (*DashboardController) GetDownTimeTurbines

func (m *DashboardController) GetDownTimeTurbines(k *knot.WebContext) interface{}

func (*DashboardController) GetDowntimeTop

func (m *DashboardController) GetDowntimeTop(k *knot.WebContext) interface{}

func (*DashboardController) GetLossCategories

func (m *DashboardController) GetLossCategories(k *knot.WebContext) interface{}

func (*DashboardController) GetLostEnergy

func (m *DashboardController) GetLostEnergy(k *knot.WebContext) interface{}

func (*DashboardController) GetMDTypeList

func (m *DashboardController) GetMDTypeList(k *knot.WebContext) interface{}

func (*DashboardController) GetMachGridAvailability

func (m *DashboardController) GetMachGridAvailability(k *knot.WebContext) interface{}

func (*DashboardController) GetMapData

func (m *DashboardController) GetMapData(k *knot.WebContext) interface{}

func (*DashboardController) GetMapData_old

func (m *DashboardController) GetMapData_old(k *knot.WebContext) interface{}

func (*DashboardController) GetMonthlyProject

func (m *DashboardController) GetMonthlyProject(k *knot.WebContext) interface{}

func (*DashboardController) GetProjectList

func (m *DashboardController) GetProjectList(k *knot.WebContext) interface{}

func (*DashboardController) GetScadaLastUpdate

func (m *DashboardController) GetScadaLastUpdate(k *knot.WebContext) interface{}

func (*DashboardController) GetScadaSummary

func (m *DashboardController) GetScadaSummary(k *knot.WebContext) interface{}

func (*DashboardController) GetScadaSummaryByMonth

func (m *DashboardController) GetScadaSummaryByMonth(k *knot.WebContext) interface{}

func (*DashboardController) GetSummaryData

func (m *DashboardController) GetSummaryData(k *knot.WebContext) interface{}

func (*DashboardController) GetSummaryDataDaily

func (m *DashboardController) GetSummaryDataDaily(k *knot.WebContext) interface{}

func (*DashboardController) GetWindDistributionRev

func (m *DashboardController) GetWindDistributionRev(k *knot.WebContext) interface{}

type DataAvailabilityController

type DataAvailabilityController struct {
	App
}

func CreateDataAvailabilityController

func CreateDataAvailabilityController() *DataAvailabilityController

DataAvailabilityController

func (*DataAvailabilityController) GetCurrentDataAvailability

func (m *DataAvailabilityController) GetCurrentDataAvailability(k *knot.WebContext) interface{}

func (*DataAvailabilityController) GetDataAvailability

func (m *DataAvailabilityController) GetDataAvailability(k *knot.WebContext) interface{}

GetDataAvailability

type DataBrowserController

type DataBrowserController struct {
	App
}

func CreateDataBrowserController

func CreateDataBrowserController() *DataBrowserController

func (*DataBrowserController) GenExcelCustom10FarmWise

func (m *DataBrowserController) GenExcelCustom10FarmWise(k *knot.WebContext) interface{}

func (*DataBrowserController) GenExcelCustom10Minutes

func (m *DataBrowserController) GenExcelCustom10Minutes(k *knot.WebContext) interface{}

func (*DataBrowserController) GenExcelData

func (m *DataBrowserController) GenExcelData(k *knot.WebContext) interface{}

func (*DataBrowserController) GetCustomFarmWise

func (m *DataBrowserController) GetCustomFarmWise(k *knot.WebContext) interface{}

func (*DataBrowserController) GetCustomList

func (m *DataBrowserController) GetCustomList(k *knot.WebContext) interface{}

func (*DataBrowserController) GetCustomList_DRAFT

func (m *DataBrowserController) GetCustomList_DRAFT(k *knot.WebContext) interface{}

func (*DataBrowserController) GetDataBrowserList

func (m *DataBrowserController) GetDataBrowserList(k *knot.WebContext) interface{}

func (*DataBrowserController) GetJMRDetails

func (m *DataBrowserController) GetJMRDetails(k *knot.WebContext) interface{}

func (*DataBrowserController) GetJMRList

func (m *DataBrowserController) GetJMRList(k *knot.WebContext) interface{}

func (*DataBrowserController) GetLostEnergyDetail

func (m *DataBrowserController) GetLostEnergyDetail(k *knot.WebContext) interface{}

type DataBrowserNewController

type DataBrowserNewController struct {
	App
}

func CreateDataBrowserNewController

func CreateDataBrowserNewController() *DataBrowserNewController

func (*DataBrowserNewController) GetCustomAvailDate

func (m *DataBrowserNewController) GetCustomAvailDate(k *knot.WebContext) interface{}

func (*DataBrowserNewController) GetCustomList

func (m *DataBrowserNewController) GetCustomList(k *knot.WebContext) interface{}

func (*DataBrowserNewController) GetDowntimeEventList

func (m *DataBrowserNewController) GetDowntimeEventList(k *knot.WebContext) interface{}

func (*DataBrowserNewController) GetDowntimeEventvailDate

func (m *DataBrowserNewController) GetDowntimeEventvailDate(k *knot.WebContext) interface{}

func (*DataBrowserNewController) GetScadaDataOEMAvailDate

func (m *DataBrowserNewController) GetScadaDataOEMAvailDate(k *knot.WebContext) interface{}

func (*DataBrowserNewController) GetScadaList

func (m *DataBrowserNewController) GetScadaList(k *knot.WebContext) interface{}

type DataEntryPowerCurveController

type DataEntryPowerCurveController struct {
	App
}

func CreateDataEntryPowerCurveController

func CreateDataEntryPowerCurveController() *DataEntryPowerCurveController

func (*DataEntryPowerCurveController) Delete

func (m *DataEntryPowerCurveController) Delete(k *knot.WebContext) interface{}

func (*DataEntryPowerCurveController) GetData

func (m *DataEntryPowerCurveController) GetData(k *knot.WebContext) interface{}

func (*DataEntryPowerCurveController) GetList

func (m *DataEntryPowerCurveController) GetList(k *knot.WebContext) interface{}

func (*DataEntryPowerCurveController) Save

func (m *DataEntryPowerCurveController) Save(k *knot.WebContext) interface{}

type DataEntryThresholdController

type DataEntryThresholdController struct {
	App
}

func CreateDataEntryThresholdController

func CreateDataEntryThresholdController() *DataEntryThresholdController

func (*DataEntryThresholdController) Delete

func (m *DataEntryThresholdController) Delete(k *knot.WebContext) interface{}

func (*DataEntryThresholdController) GetData

func (m *DataEntryThresholdController) GetData(k *knot.WebContext) interface{}

func (*DataEntryThresholdController) GetList

func (m *DataEntryThresholdController) GetList(k *knot.WebContext) interface{}

func (*DataEntryThresholdController) Save

func (m *DataEntryThresholdController) Save(k *knot.WebContext) interface{}

type DataEntryTurbineController

type DataEntryTurbineController struct {
	App
}

func CreateDataEntryTurbineController

func CreateDataEntryTurbineController() *DataEntryTurbineController

func (*DataEntryTurbineController) Delete

func (m *DataEntryTurbineController) Delete(k *knot.WebContext) interface{}

func (*DataEntryTurbineController) GetData

func (m *DataEntryTurbineController) GetData(k *knot.WebContext) interface{}

func (*DataEntryTurbineController) GetList

func (m *DataEntryTurbineController) GetList(k *knot.WebContext) interface{}

func (*DataEntryTurbineController) Save

func (m *DataEntryTurbineController) Save(k *knot.WebContext) interface{}

type DataGroupResult

type DataGroupResult struct {
	ProjectName string
	Turbine     string
	DateId      time.Time
}

type DataItem

type DataItem struct {
	DirectionNo    int
	DirectionDesc  int
	WsCategoryNo   int
	WsCategoryDesc string
	Hours          float64
	Frequency      int
}

type DataItemGroup

type DataItemGroup struct {
	DirectionNo    int
	DirectionDesc  int
	WsCategoryNo   int
	WsCategoryDesc string
}

type DataItemGroupGrid

type DataItemGroupGrid struct {
	WsCategoryNo   int
	WsCategoryDesc string
}

type DataItemResult

type DataItemResult struct {
	DirectionNo    int
	DirectionDesc  int
	WsCategoryNo   int
	WsCategoryDesc string
	Hours          float64
	Contribution   float64
	Frequency      int
}

type DataItemResultGrid

type DataItemResultGrid struct {
	WsCategoryNo   int
	WsCategoryDesc string
	Hours          float64
	Frequency      float64
}

type DataItems

type DataItems struct {
	DirectionNo    int
	DirectionDesc  int
	WsCategoryNo   int
	WsCategoryDesc string
	Frequency      int
}

type DataItemsGroup

type DataItemsGroup struct {
	DirectionNo    int
	DirectionDesc  int
	WsCategoryNo   int
	WsCategoryDesc string
}

type DataItemsResult

type DataItemsResult struct {
	DirectionNo    int
	DirectionDesc  int
	WsCategoryNo   int
	WsCategoryDesc string
	Hours          float64
	Contribution   float64
	Frequency      int
}

type DataItemsResultComp

type DataItemsResultComp struct {
	DirectionNo   int
	DirectionDesc int
	Hours         float64
	Contribution  float64
}

type DataSensorGovernanceController

type DataSensorGovernanceController struct {
	App
}

func CreateDataSensorGovernanceController

func CreateDataSensorGovernanceController() *DataSensorGovernanceController

func (*DataSensorGovernanceController) GetData

func (m *DataSensorGovernanceController) GetData(k *knot.WebContext) interface{}

type DiyViewController

type DiyViewController struct {
	App
}

func CreateDiyViewController

func CreateDiyViewController() *DiyViewController

func (*DiyViewController) GetData

func (m *DiyViewController) GetData(k *knot.WebContext) interface{}

type EmailController

type EmailController struct {
	App
}

func CreateEmailController

func CreateEmailController() *EmailController

func (*EmailController) DeleteEmail

func (a *EmailController) DeleteEmail(r *knot.WebContext) interface{}

func (*EmailController) EditEmail

func (a *EmailController) EditEmail(r *knot.WebContext) interface{}

func (*EmailController) SaveEmail

func (a *EmailController) SaveEmail(r *knot.WebContext) interface{}

func (*EmailController) Search

func (a *EmailController) Search(r *knot.WebContext) interface{}

type FalseContainer

type FalseContainer struct {
	Order int
	Start time.Time
	End   time.Time
}

type FieldAnalysis

type FieldAnalysis struct {
	Id     string
	Name   string
	Aggr   string
	Text   string
	Min    float64
	Max    float64
	Order  int
	Source string
}

type ForecastController

type ForecastController struct {
	App
}

func CreateForecastController

func CreateForecastController() *ForecastController

func (*ForecastController) DeleteRecipient

func (m *ForecastController) DeleteRecipient(k *knot.WebContext) interface{}

func (*ForecastController) GetList

func (m *ForecastController) GetList(k *knot.WebContext) interface{}

func (*ForecastController) GetListTurbineDown

func (m *ForecastController) GetListTurbineDown(k *knot.WebContext) interface{}

func (*ForecastController) GetRecipient

func (m *ForecastController) GetRecipient(k *knot.WebContext) interface{}

func (*ForecastController) GetRecipientList

func (m *ForecastController) GetRecipientList(k *knot.WebContext) interface{}

func (*ForecastController) GetTurbineDown

func (m *ForecastController) GetTurbineDown(k *knot.WebContext) interface{}

func (*ForecastController) SaveRecipient

func (m *ForecastController) SaveRecipient(k *knot.WebContext) interface{}

func (*ForecastController) SendMail

func (m *ForecastController) SendMail(k *knot.WebContext) interface{}

func (*ForecastController) UpdateAutoSend

func (m *ForecastController) UpdateAutoSend(k *knot.WebContext) interface{}

func (*ForecastController) UpdateSldc

func (m *ForecastController) UpdateSldc(k *knot.WebContext) interface{}

type GroupController

type GroupController struct {
	App
}

func CreateGroupController

func CreateGroupController() *GroupController

func (*GroupController) DeleteGroup

func (a *GroupController) DeleteGroup(r *knot.WebContext) interface{}

func (*GroupController) EditGroup

func (a *GroupController) EditGroup(r *knot.WebContext) interface{}

func (*GroupController) GetAccessGroup

func (a *GroupController) GetAccessGroup(r *knot.WebContext) interface{}

func (*GroupController) GetGroup

func (a *GroupController) GetGroup(r *knot.WebContext) interface{}

func (*GroupController) SaveGroup

func (a *GroupController) SaveGroup(r *knot.WebContext) interface{}

func (*GroupController) Search

func (a *GroupController) Search(r *knot.WebContext) interface{}

type HFDModel

type HFDModel struct {
	Timestamp time.Time
	Turbine   string
	Tag       string
	Value     float64
}

func ReadHFDFile

func ReadHFDFile(path string, tags []string) (result []HFDModel, e error)

type HelperController

type HelperController struct {
	App
}

func CreateHelperController

func CreateHelperController() *HelperController

func (*HelperController) GetModelList

func (m *HelperController) GetModelList(k *knot.WebContext) interface{}

func (*HelperController) GetProjectInfo

func (m *HelperController) GetProjectInfo(k *knot.WebContext) interface{}

func (*HelperController) GetProjectList

func (m *HelperController) GetProjectList(k *knot.WebContext) interface{}

func (*HelperController) GetTurbineList

func (m *HelperController) GetTurbineList(k *knot.WebContext) interface{}

type IssueTrackingController

type IssueTrackingController struct {
	App
}

func CreateIssueTrackingController

func CreateIssueTrackingController() *IssueTrackingController

func (*IssueTrackingController) GetData

func (m *IssueTrackingController) GetData(k *knot.WebContext) interface{}

type LogController

type LogController struct {
	App
}

func CreateLogController

func CreateLogController() *LogController

func (*LogController) GetLog

func (a *LogController) GetLog(r *knot.WebContext) interface{}

type LoginController

type LoginController struct {
	App
}

func CreateLoginController

func CreateLoginController() *LoginController

func (*LoginController) Authenticate

func (l *LoginController) Authenticate(r *knot.WebContext) interface{}

func (*LoginController) CheckCurrentSession

func (l *LoginController) CheckCurrentSession(r *knot.WebContext) interface{}

func (*LoginController) GetMenuList

func (l *LoginController) GetMenuList(r *knot.WebContext) interface{}

func (*LoginController) GetSession

func (l *LoginController) GetSession(r *knot.WebContext) interface{}

func (*LoginController) GetUserName

func (l *LoginController) GetUserName(r *knot.WebContext) interface{}

func (*LoginController) LoginRealtime

func (l *LoginController) LoginRealtime(r *knot.WebContext) interface{}

func (*LoginController) Logout

func (l *LoginController) Logout(r *knot.WebContext) interface{}

func (*LoginController) ProcessLogin

func (l *LoginController) ProcessLogin(r *knot.WebContext) interface{}

func (*LoginController) ResetPassword

func (l *LoginController) ResetPassword(r *knot.WebContext) interface{}

func (*LoginController) SavePassword

func (l *LoginController) SavePassword(r *knot.WebContext) interface{}

type MappingColumn

type MappingColumn struct {
	Name      string
	SecField  string
	Unit      string
	MinValue  float64
	MaxValue  float64
	Aggregate string
}

type MiniScadaHFD

type MiniScadaHFD struct {
	Nacellepos    float64
	Windspeed_Ms  float64
	Winddirection float64
	Turbine       string
}

type MonitoringController

type MonitoringController struct {
	App
}

func CreateMonitoringController

func CreateMonitoringController() *MonitoringController

func (*MonitoringController) GetData

func (m *MonitoringController) GetData(k *knot.WebContext) interface{}

func (*MonitoringController) GetDetailChart

func (m *MonitoringController) GetDetailChart(k *knot.WebContext) interface{}

func (*MonitoringController) GetEvent

func (m *MonitoringController) GetEvent(k *knot.WebContext) interface{}

type MonitoringCustomController

type MonitoringCustomController struct {
	App
}

func CreateMonitoringCustomController

func CreateMonitoringCustomController() *MonitoringCustomController

func (*MonitoringCustomController) GetData

func (m *MonitoringCustomController) GetData(k *knot.WebContext) interface{}

type MonitoringRealtimeController

type MonitoringRealtimeController struct {
	App
}

func CreateMonitoringRealtimeController

func CreateMonitoringRealtimeController() *MonitoringRealtimeController

func (*MonitoringRealtimeController) GetDataAlarm

func (c *MonitoringRealtimeController) GetDataAlarm(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataAlarmAvailDate

func (c *MonitoringRealtimeController) GetDataAlarmAvailDate(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataFarm

func (c *MonitoringRealtimeController) GetDataFarm(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataNotification

func (c *MonitoringRealtimeController) GetDataNotification(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataProject

func (c *MonitoringRealtimeController) GetDataProject(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataTemperature

func (c *MonitoringRealtimeController) GetDataTemperature(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataTurbine

func (c *MonitoringRealtimeController) GetDataTurbine(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetDataTurbineOld

func (c *MonitoringRealtimeController) GetDataTurbineOld(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetTemperatureHeatMap

func (c *MonitoringRealtimeController) GetTemperatureHeatMap(k *knot.WebContext) interface{}

func (*MonitoringRealtimeController) GetWindRoseMonitoring

func (m *MonitoringRealtimeController) GetWindRoseMonitoring(k *knot.WebContext) interface{}

type PageController

type PageController struct {
	App
	Params toolkit.M
}

func CreatePageController

func CreatePageController(AppName string) *PageController

func (*PageController) Access

func (w *PageController) Access(r *knot.WebContext) interface{}

func (*PageController) AdminTable

func (w *PageController) AdminTable(r *knot.WebContext) interface{}

func (*PageController) AnalyticComparison

func (w *PageController) AnalyticComparison(r *knot.WebContext) interface{}

func (*PageController) AnalyticDataConsistency

func (w *PageController) AnalyticDataConsistency(r *knot.WebContext) interface{}

func (*PageController) AnalyticDataHistogram

func (w *PageController) AnalyticDataHistogram(r *knot.WebContext) interface{}

func (*PageController) AnalyticDgrCluster

func (w *PageController) AnalyticDgrCluster(r *knot.WebContext) interface{}

func (*PageController) AnalyticKeyMetrics

func (w *PageController) AnalyticKeyMetrics(r *knot.WebContext) interface{}

func (*PageController) AnalyticKpi

func (w *PageController) AnalyticKpi(r *knot.WebContext) interface{}

func (*PageController) AnalyticLoss

func (w *PageController) AnalyticLoss(r *knot.WebContext) interface{}

func (*PageController) AnalyticMeteorology

func (w *PageController) AnalyticMeteorology(r *knot.WebContext) interface{}

func (*PageController) AnalyticPCComparison

func (w *PageController) AnalyticPCComparison(r *knot.WebContext) interface{}

func (*PageController) AnalyticPCMonthly

func (w *PageController) AnalyticPCMonthly(r *knot.WebContext) interface{}

func (*PageController) AnalyticPCMonthlyScatter

func (w *PageController) AnalyticPCMonthlyScatter(r *knot.WebContext) interface{}

func (*PageController) AnalyticPCScatter

func (w *PageController) AnalyticPCScatter(r *knot.WebContext) interface{}

func (*PageController) AnalyticPCScatterAnalysis

func (w *PageController) AnalyticPCScatterAnalysis(r *knot.WebContext) interface{}

func (*PageController) AnalyticPCScatterOperational

func (w *PageController) AnalyticPCScatterOperational(r *knot.WebContext) interface{}

func (*PageController) AnalyticPerformanceIndex

func (w *PageController) AnalyticPerformanceIndex(r *knot.WebContext) interface{}

func (*PageController) AnalyticPowerCurve

func (w *PageController) AnalyticPowerCurve(r *knot.WebContext) interface{}

func (*PageController) AnalyticTrendLinePlots

func (w *PageController) AnalyticTrendLinePlots(r *knot.WebContext) interface{}

func (*PageController) ClusterWiseGeneration

func (w *PageController) ClusterWiseGeneration(r *knot.WebContext) interface{}

func (*PageController) Dashboard

func (w *PageController) Dashboard(r *knot.WebContext) interface{}

func (*PageController) DataAvailability

func (w *PageController) DataAvailability(r *knot.WebContext) interface{}

func (*PageController) DataBrowser

func (w *PageController) DataBrowser(r *knot.WebContext) interface{}

func (*PageController) DataEntryPowerCurve

func (w *PageController) DataEntryPowerCurve(r *knot.WebContext) interface{}

func (*PageController) DataEntryThreshold

func (w *PageController) DataEntryThreshold(r *knot.WebContext) interface{}

func (*PageController) DataEntryTurbine

func (w *PageController) DataEntryTurbine(r *knot.WebContext) interface{}

func (*PageController) DataSensorGovernance

func (w *PageController) DataSensorGovernance(r *knot.WebContext) interface{}

func (*PageController) DgrReport

func (w *PageController) DgrReport(r *knot.WebContext) interface{}

func (*PageController) EmailManagement

func (w *PageController) EmailManagement(r *knot.WebContext) interface{}

func (*PageController) Forecasting

func (w *PageController) Forecasting(r *knot.WebContext) interface{}

func (*PageController) GetParams

func (w *PageController) GetParams(r *knot.WebContext, isAnalyst bool) toolkit.M

func (*PageController) Group

func (w *PageController) Group(r *knot.WebContext) interface{}

func (*PageController) Home

func (w *PageController) Home(r *knot.WebContext) interface{}

func (*PageController) IssueTracking

func (w *PageController) IssueTracking(r *knot.WebContext) interface{}

func (*PageController) Log

func (w *PageController) Log(r *knot.WebContext) interface{}

func (*PageController) Login

func (w *PageController) Login(r *knot.WebContext) interface{}

func (*PageController) Monitoring

func (w *PageController) Monitoring(r *knot.WebContext) interface{}

func (*PageController) MonitoringAlarm

func (w *PageController) MonitoringAlarm(r *knot.WebContext) interface{}

func (*PageController) MonitoringAllProject

func (w *PageController) MonitoringAllProject(r *knot.WebContext) interface{}

func (*PageController) MonitoringByProject

func (w *PageController) MonitoringByProject(r *knot.WebContext) interface{}

func (*PageController) MonitoringByProjectCustom

func (w *PageController) MonitoringByProjectCustom(r *knot.WebContext) interface{}

func (*PageController) MonitoringByTurbine

func (w *PageController) MonitoringByTurbine(r *knot.WebContext) interface{}

func (*PageController) MonitoringEvent

func (w *PageController) MonitoringEvent(r *knot.WebContext) interface{}

func (*PageController) MonitoringNotification

func (w *PageController) MonitoringNotification(r *knot.WebContext) interface{}

func (*PageController) MonitoringSummary

func (w *PageController) MonitoringSummary(r *knot.WebContext) interface{}

func (*PageController) MonitoringTemperature

func (w *PageController) MonitoringTemperature(r *knot.WebContext) interface{}

func (*PageController) MonitoringWeather

func (w *PageController) MonitoringWeather(r *knot.WebContext) interface{}

func (*PageController) PowerCurveAnalysis

func (w *PageController) PowerCurveAnalysis(r *knot.WebContext) interface{}

func (*PageController) Reporting

func (w *PageController) Reporting(r *knot.WebContext) interface{}

func (*PageController) SCMManagement

func (w *PageController) SCMManagement(r *knot.WebContext) interface{}

func (*PageController) Session

func (w *PageController) Session(r *knot.WebContext) interface{}

func (*PageController) Starter

func (w *PageController) Starter(r *knot.WebContext) interface{}

func (*PageController) ThreeDAnalytic

func (w *PageController) ThreeDAnalytic(r *knot.WebContext) interface{}

func (*PageController) TimeSeries

func (w *PageController) TimeSeries(r *knot.WebContext) interface{}

func (*PageController) TimeSeriesHFD

func (w *PageController) TimeSeriesHFD(r *knot.WebContext) interface{}

func (*PageController) TurbineHealth

func (w *PageController) TurbineHealth(r *knot.WebContext) interface{}

func (*PageController) User

func (w *PageController) User(r *knot.WebContext) interface{}

func (*PageController) WindFarmAnalysis

func (w *PageController) WindFarmAnalysis(r *knot.WebContext) interface{}

func (*PageController) XYAnalysis

func (w *PageController) XYAnalysis(r *knot.WebContext) interface{}

func (*PageController) XYAnalysis3D

func (w *PageController) XYAnalysis3D(r *knot.WebContext) interface{}

type Payload

type Payload struct {
	Period              string
	DateStart           time.Time
	DateEnd             time.Time
	Project             string
	Turbine             string
	Skip                int
	Take                int
	Sort                []Sorting
	Filter              toolkit.M
	IsValidTimeDuration bool
}

type PayloadAnalytic

type PayloadAnalytic struct {
	Period     string
	Project    string
	Engine     string
	Turbine    []interface{}
	DateStart  time.Time
	DateEnd    time.Time
	IsClean    bool
	IsAverage  bool
	IsDownTime bool
	Color      []interface{}
	BreakDown  string
	DateStr    string
}

type PayloadAnalyticPC

type PayloadAnalyticPC struct {
	Period       string
	DateStart    time.Time
	DateEnd      time.Time
	Turbine      []interface{}
	Project      string
	IsClean      bool
	IsDeviation  bool
	IsSpecific   bool
	DeviationVal string
	DeviationOpr string // add by ams, 2017-08-11
	IsPower0     bool
	IsAverage    bool
	Color        []interface{}
	ColorDeg     []interface{}
	IsDownTime   bool
	BreakDown    string
	ViewSession  string
	Engine       string
}

type PayloadAnalyticTLP

type PayloadAnalyticTLP struct {
	Period          string
	Project         string
	Turbine         []interface{}
	DateStart       time.Time
	DateEnd         time.Time
	ColName         string
	DeviationStatus bool
	Deviation       float64
}

type PayloadComparison

type PayloadComparison struct {
	Project   string
	Turbine   []interface{}
	Keys      []string
	Period    string
	DateStart time.Time
	DateEnd   time.Time
}

type PayloadDashboard

type PayloadDashboard struct {
	ProjectName string
	Turbine     string
	Type        string
	Date        time.Time
	DateStr     string
	IsDetail    bool
	Skip        int
	Take        int
	Sort        []Sorting
}

type PayloadEventAnalysis

type PayloadEventAnalysis struct {
	Period           string
	Project          string
	Turbine          []interface{}
	DateStart        time.Time
	DateEnd          time.Time
	BreakDown        string
	AdditionalFilter tk.M
	RealDesc         tk.M
}

type PayloadHistogram

type PayloadHistogram struct {
	MaxValue float64
	MinValue float64
	BinValue int
	Filter   PayloadAnalytic
}

type PayloadKPI

type PayloadKPI struct {
	Project         string
	Turbine         []interface{}
	Period          string
	DateStart       time.Time
	DateEnd         time.Time
	ColumnBreakDown string
	RowBreakDown    string
	KeyA            string
	KeyB            string
	KeyC            string
}

type PayloadPCComparison

type PayloadPCComparison struct {
	PC1Period    string
	PC1Project   string
	PC1Turbine   string //[]interface{}
	PC1DateStart time.Time
	PC1DateEnd   time.Time

	PC2Period    string
	PC2Project   string
	PC2Turbine   string //[]interface{}
	PC2DateStart time.Time
	PC2DateEnd   time.Time
}

type PayloadTimeSeries

type PayloadTimeSeries struct {
	Period    string
	Project   string
	Turbine   string
	DateStart time.Time
	DateEnd   time.Time
	TagList   []string
	DataType  string
	PageType  string
	IsHour    bool
}

type PayloadXyAnalysis

type PayloadXyAnalysis struct {
	Period    string
	Project   []string
	Engine    string
	Turbine   []interface{}
	DateStart time.Time
	DateEnd   time.Time
	XAxis     FieldAnalysis
	Y1Axis    FieldAnalysis
	Y2Axis    FieldAnalysis
}

type RHFDModel

type RHFDModel struct {
	HFDModel
	SValue float64
	CValue float64
}

type ReportingController

type ReportingController struct {
	App
}

func CreateReportingController

func CreateReportingController() *ReportingController

func (*ReportingController) GetData

func (m *ReportingController) GetData(k *knot.WebContext) interface{}

type ResDataAvail

type ResDataAvail struct {
	Chart      []tk.M
	PeriodList []tk.M
	Breaks     []tk.M
	Outliers   [][]interface{}
}

type SCMManagementController

type SCMManagementController struct {
	App
}

func CreateSCMManagementController

func CreateSCMManagementController() *SCMManagementController

func (*SCMManagementController) GetData

func (m *SCMManagementController) GetData(k *knot.WebContext) interface{}

type ScadaSummaryVariance

type ScadaSummaryVariance struct {
	orm.ModelBase      `bson:"-",json:"-"`
	ID                 bson.ObjectId ` bson:"_id" , json:"_id" `
	DateInfo           DateInfo
	ProjectName        string
	Production         float64
	ProductionLastYear float64
	Revenue            float64
	RevenueInLacs      float64
	TrueAvail          interface{}
	ScadaAvail         float64
	MachineAvail       float64
	GridAvail          float64
	PLF                float64
	Budget             float64
	AvgWindSpeed       float64
	ExpWindSpeed       float64
	DowntimeHours      float64
	LostEnergy         float64
	RevenueLoss        float64
	Variance           float64
}

type SessionController

type SessionController struct {
	App
}

func CreateSessionController

func CreateSessionController() *SessionController

func (*SessionController) GetSession

func (a *SessionController) GetSession(r *knot.WebContext) interface{}

func (*SessionController) SetExpired

func (a *SessionController) SetExpired(r *knot.WebContext) interface{}

type Sorting

type Sorting struct {
	Field string
	Dir   string
}

type ThreeDAnalyticController

type ThreeDAnalyticController struct {
	App
}

func CreateThreeDAnalyticController

func CreateThreeDAnalyticController() *ThreeDAnalyticController

type TimePeriodModel

type TimePeriodModel struct {
	TimePeriod time.Time
	DatePeriod time.Time
	TimeBlock  int
	TimeRange  string
}

type TimeSeriesController

type TimeSeriesController struct {
	App
}

func CreateTimeSeriesController

func CreateTimeSeriesController() *TimeSeriesController

func (*TimeSeriesController) GetDataHFD

func (m *TimeSeriesController) GetDataHFD(k *knot.WebContext) interface{}

type TrendLinePlotsController

type TrendLinePlotsController struct {
	App
}

func CreateTrendLinePlotsController

func CreateTrendLinePlotsController() *TrendLinePlotsController

func (*TrendLinePlotsController) GetList

func (m *TrendLinePlotsController) GetList(k *knot.WebContext) interface{}

type TurbineCollaborationController

type TurbineCollaborationController struct {
	App
}

func CreateTurbineCollaborationController

func CreateTurbineCollaborationController() *TurbineCollaborationController

func (*TurbineCollaborationController) GetLatest

func (m *TurbineCollaborationController) GetLatest(k *knot.WebContext) interface{}

func (*TurbineCollaborationController) Save

func (m *TurbineCollaborationController) Save(k *knot.WebContext) interface{}

type TurbineHealthController

type TurbineHealthController struct {
	App
}

func CreateTurbineHealthController

func CreateTurbineHealthController() *TurbineHealthController

func (*TurbineHealthController) GetData

func (m *TurbineHealthController) GetData(k *knot.WebContext) interface{}

type UserController

type UserController struct {
	App
}

func CreateUserController

func CreateUserController() *UserController

func (*UserController) ChangePass

func (a *UserController) ChangePass(r *knot.WebContext) interface{}

func (*UserController) DeleteUser

func (a *UserController) DeleteUser(r *knot.WebContext) interface{}

func (*UserController) EditUser

func (a *UserController) EditUser(r *knot.WebContext) interface{}

func (*UserController) GetAccessUser

func (a *UserController) GetAccessUser(r *knot.WebContext) interface{}

func (*UserController) GetUser

func (a *UserController) GetUser(r *knot.WebContext) interface{}

func (*UserController) SaveUser

func (a *UserController) SaveUser(r *knot.WebContext) interface{}

type UserPreferencesController

type UserPreferencesController struct {
	App
}

func CreateUserPreferencesController

func CreateUserPreferencesController() *UserPreferencesController

func (*UserPreferencesController) GetAnalysisStudioViews

func (m *UserPreferencesController) GetAnalysisStudioViews(k *knot.WebContext) interface{}

func (*UserPreferencesController) GetSavedKPIAnalysis

func (m *UserPreferencesController) GetSavedKPIAnalysis(k *knot.WebContext) interface{}

func (*UserPreferencesController) SaveAnalysisStudioViews

func (m *UserPreferencesController) SaveAnalysisStudioViews(k *knot.WebContext) interface{}

func (*UserPreferencesController) SaveKPI

func (m *UserPreferencesController) SaveKPI(k *knot.WebContext) interface{}

type WindFarmAnalysisController

type WindFarmAnalysisController struct {
	App
}

func CreateWindFarmAnalysisController

func CreateWindFarmAnalysisController() *WindFarmAnalysisController

func (*WindFarmAnalysisController) GetDataByProject

func (c *WindFarmAnalysisController) GetDataByProject(k *knot.WebContext) interface{}

func (*WindFarmAnalysisController) GetDataByTurbine1

func (c *WindFarmAnalysisController) GetDataByTurbine1(k *knot.WebContext) interface{}

func (*WindFarmAnalysisController) GetDataByTurbine2

func (c *WindFarmAnalysisController) GetDataByTurbine2(k *knot.WebContext) interface{}

type XyAnalysis

type XyAnalysis struct {
	App
}

func CreateXyAnalysisController

func CreateXyAnalysisController() *XyAnalysis

func (*XyAnalysis) GetData

func (m *XyAnalysis) GetData(k *knot.WebContext) interface{}

func (*XyAnalysis) GetXYFieldList

func (m *XyAnalysis) GetXYFieldList(k *knot.WebContext) interface{}

Jump to

Keyboard shortcuts

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