Documentation ¶
Index ¶
- Variables
- type ErrorHandler
- type Logger
- type ModelViewModel
- func (t *ModelViewModel) GetDataTable() *cbwebcommon.DataTable
- func (t *ModelViewModel) GetLogNames() []string
- func (t *ModelViewModel) GetMainTemplate() string
- func (t *ModelViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel
- func (t *ModelViewModel) GetMetricError() string
- func (t *ModelViewModel) GetTemplates() []string
- func (t *ModelViewModel) HasMetricsError() bool
- type ModelsViewModel
- func (t *ModelsViewModel) GetDataTable() *cbwebcommon.DataTable
- func (t *ModelsViewModel) GetLogNames() []string
- func (t *ModelsViewModel) GetMainTemplate() string
- func (t *ModelsViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel
- func (t *ModelsViewModel) GetMetricsColumns() map[string]int
- func (t *ModelsViewModel) GetTemplates() []string
- type Module
- func (m *Module) GetErrorHandler() ErrorHandler
- func (m *Module) GetGlobalTemplates() map[string][]byte
- func (m *Module) GetLogger() Logger
- func (m *Module) Model(ctx *fasthttp.RequestCtx)
- func (m *Module) Models(ctx *fasthttp.RequestCtx)
- func (m *Module) ModelsPostAction(ctx *fasthttp.RequestCtx)
- func (m *Module) SetGlobalTemplates(templates map[string][]byte)
- func (m *Module) SetRoutes(router *router.Router)
- type Record
- type RecordRow
Constants ¶
This section is empty.
Variables ¶
View Source
var ModelRoute = "/metrics/model"
View Source
var ModelsRoute = "/metrics/models"
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler interface {
Error(e error)
}
type ModelViewModel ¶
type ModelViewModel struct { Ctx *fasthttp.RequestCtx Flash *cbweb.Flash ModelName string ModelLogs string ModelProgressLog string ModelJson string ModelSummary string MetricsViewModel *ModelsViewModel MetricsError error }
func (*ModelViewModel) GetDataTable ¶
func (t *ModelViewModel) GetDataTable() *cbwebcommon.DataTable
func (*ModelViewModel) GetLogNames ¶
func (t *ModelViewModel) GetLogNames() []string
func (*ModelViewModel) GetMainTemplate ¶
func (t *ModelViewModel) GetMainTemplate() string
func (*ModelViewModel) GetMasterViewModel ¶
func (t *ModelViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel
func (*ModelViewModel) GetMetricError ¶
func (t *ModelViewModel) GetMetricError() string
func (*ModelViewModel) GetTemplates ¶
func (t *ModelViewModel) GetTemplates() []string
func (*ModelViewModel) HasMetricsError ¶
func (t *ModelViewModel) HasMetricsError() bool
type ModelsViewModel ¶
type ModelsViewModel struct { Ctx *fasthttp.RequestCtx Flash *cbweb.Flash Metrics []Record AllRows bool }
func (*ModelsViewModel) GetDataTable ¶
func (t *ModelsViewModel) GetDataTable() *cbwebcommon.DataTable
func (*ModelsViewModel) GetLogNames ¶
func (t *ModelsViewModel) GetLogNames() []string
func (*ModelsViewModel) GetMainTemplate ¶
func (t *ModelsViewModel) GetMainTemplate() string
func (*ModelsViewModel) GetMasterViewModel ¶
func (t *ModelsViewModel) GetMasterViewModel() cbweb.DefaultMasterViewModel
func (*ModelsViewModel) GetMetricsColumns ¶
func (t *ModelsViewModel) GetMetricsColumns() map[string]int
func (*ModelsViewModel) GetTemplates ¶
func (t *ModelsViewModel) GetTemplates() []string
type Module ¶
type Module struct { Common *cbwebcommon.Module ErrorHandler ErrorHandler Logger Logger IgnoredModels []string }
func (*Module) GetErrorHandler ¶
func (m *Module) GetErrorHandler() ErrorHandler
func (*Module) GetGlobalTemplates ¶
func (*Module) Model ¶
func (m *Module) Model(ctx *fasthttp.RequestCtx)
func (*Module) Models ¶
func (m *Module) Models(ctx *fasthttp.RequestCtx)
func (*Module) ModelsPostAction ¶
func (m *Module) ModelsPostAction(ctx *fasthttp.RequestCtx)
func (*Module) SetGlobalTemplates ¶
Click to show internal directories.
Click to hide internal directories.