Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomData ¶
type CustomData interface { CustomDataPtr() interface{} EncodeFromCustomData(customDataPtr interface{}, stdDataPtr *Data) DecodeToCustomData(stdDataPtr *Data, customDataPtr interface{}) }
CustomData is kv's custom data handler.
type CustomInParams ¶
type CustomInParams interface { CustomInParamsPtr() interface{} EncodeFromCustomInParams(customInParamsPtr interface{}, stdInParamsPtr *cptype.ExtraMap) DecodeToCustomInParams(stdInParamsPtr *cptype.ExtraMap, customInParamsPtr interface{}) }
CustomInParams is kv's custom inParams handler.
type CustomState ¶
type CustomState interface { CustomStatePtr() interface{} EncodeFromCustomState(customStatePtr interface{}, stdStatePtr *cptype.ExtraMap) DecodeToCustomState(stdStatePtr *cptype.ExtraMap, customStatePtr interface{}) }
CustomState is kv's custom state handler.
type Item ¶
type Item struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` Value float64 `json:"value,omitempty"` Percent float64 `json:"percent,omitempty"` // percent Unit string `json:"unit,omitempty"` }
Item .
type Record ¶
type Record struct { Title string `json:"title,omitempty"` // record title Items []Item `json:"items,omitempty"` // records TitleIcon string `json:"titleIcon,omitempty"` // title icon BackgroundIcon string `json:"backgroundIcon,omitempty"` // record icon Span string `json:"span,omitempty"` // scale of each record }
Record includes one record of top
Click to show internal directories.
Click to hide internal directories.