topn

package
v1.0.6-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 1 Imported by: 2

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 Data

type Data struct {
	List []Record `json:"list,omitempty"`
}

Data includes list.

type ITop

type ITop interface {
	cptype.IComponent
	ITopStdOps
}

ITop top interface

type ITopStdOps

type ITopStdOps interface{}

ITopStdOps .

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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