Documentation
¶
Index ¶
- Variables
- func SetLogger(log ILogger)
- type ChartBase
- type ChartClassType
- type ChartServer
- type ChartTime
- func (this *ChartTime) AddData(newDatas map[string][]interface{}, UTCTime int64) []interface{}
- func (this *ChartTime) Init()
- func (this *ChartTime) Load(filename string) (bool, []interface{})
- func (this *ChartTime) LoadBase(filename string) (bool, *simplejson.Json)
- func (this *ChartTime) Template() string
- func (this *ChartTime) TemplateScrollBars() string
- type DefaultLogger
- func (this *DefaultLogger) Error(args ...interface{})
- func (this *DefaultLogger) Errorf(format string, args ...interface{})
- func (this *DefaultLogger) Errorln(args ...interface{})
- func (this *DefaultLogger) Info(args ...interface{})
- func (this *DefaultLogger) Infof(format string, args ...interface{})
- func (this *DefaultLogger) Infoln(args ...interface{})
- type ICharNormal
- type IChart
- type IChartFile
- type IChartInner
- type IChartSave
- type ILogger
Constants ¶
This section is empty.
Variables ¶
View Source
var TemplateTimeHtml = `` /* 4887-byte string literal not displayed */
spline,line,column,area,bar
View Source
var TemplateTimeHtml_ScrollBars = `` /* 4901-byte string literal not displayed */
spline,line,column,area,bar
Functions ¶
Types ¶
type ChartBase ¶
type ChartBase struct { ChartType string Title string SubTitle string YAxisText string XAxisNumbers string ValueSuffix string YMax string RefreshTime int SampleNum int // contains filtered or unexported fields }
func (*ChartBase) GoSaveData ¶
func (*ChartBase) IsEnableSaveData ¶
type ChartServer ¶
type ChartServer struct {
// contains filtered or unexported fields
}
func (*ChartServer) AddChart ¶
func (this *ChartServer) AddChart(chartname string, chart IChartInner, savedata bool)
func (*ChartServer) ListenAndServe ¶
func (this *ChartServer) ListenAndServe(addr string) error
type ChartTime ¶
type ChartTime struct { ChartBase TickInterval string TickLabelStep string PlotLinesY string TickUnit int }
func (*ChartTime) LoadBase ¶
func (this *ChartTime) LoadBase(filename string) (bool, *simplejson.Json)
func (*ChartTime) TemplateScrollBars ¶
type DefaultLogger ¶
type DefaultLogger struct { }
func NewDefaultLogger ¶
func NewDefaultLogger() *DefaultLogger
func (*DefaultLogger) Error ¶
func (this *DefaultLogger) Error(args ...interface{})
func (*DefaultLogger) Errorf ¶
func (this *DefaultLogger) Errorf(format string, args ...interface{})
func (*DefaultLogger) Errorln ¶
func (this *DefaultLogger) Errorln(args ...interface{})
func (*DefaultLogger) Info ¶
func (this *DefaultLogger) Info(args ...interface{})
func (*DefaultLogger) Infof ¶
func (this *DefaultLogger) Infof(format string, args ...interface{})
func (*DefaultLogger) Infoln ¶
func (this *DefaultLogger) Infoln(args ...interface{})
type ICharNormal ¶
type IChartFile ¶
type IChartFile interface { ICharNormal Load(filename string) (bool, []interface{}) TemplateScrollBars() string }
type IChartInner ¶
type IChartInner interface { IChart IChartSave ICharNormal }
type IChartSave ¶
Click to show internal directories.
Click to hide internal directories.