Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartRenderer ¶
type ChartRenderer struct {
// contains filtered or unexported fields
}
ChartRenderer renders trie in the JSON format
func NewChartRenderer ¶
func NewChartRenderer(srv server.SimpleServerInterface, params ChartRendererParams) ChartRenderer
NewChartRenderer creates ChartRenderer
type ChartRendererParams ¶
ChartRendererParams represents rendering params for web renderer
func NewChartRendererParams ¶
func NewChartRendererParams(paramsSerialized string) (ChartRendererParams, error)
NewChartRendererParams creates ChartRendererParams
type JSONRenderer ¶
type JSONRenderer struct {
// contains filtered or unexported fields
}
JSONRenderer renders trie in the JSON format
func NewJSONRenderer ¶
func NewJSONRenderer(output io.Writer, params JSONRendererParams) JSONRenderer
NewJSONRenderer creates JSONRenderer
type JSONRendererParams ¶
type JSONRendererParams struct { Padding string `query:"padding"` PaddingSpaceCount int `query:"padSpaces"` }
JSONRendererParams represents rendering params for Json renderer
func NewJSONRendererParams ¶
func NewJSONRendererParams(paramsSerialized string) (JSONRendererParams, error)
NewJSONRendererParams creates JSONRendererParams
type Node ¶
type Node struct { Name string `json:"name"` Value int64 `json:"value"` ValueHuman string `json:"valueHuman"` FullPath string `json:"pathFull"` KeysCount int64 `json:"keys"` Children []Node `json:"children"` }
Node structure for serialized json of anychart library
type TableRenderer ¶
type TableRenderer struct {
// contains filtered or unexported fields
}
TableRenderer renders trie as ascii-table to output (most probably stdout)
type TableRendererParams ¶
type TableRendererParams struct { Depth int `query:"depth"` Padding string `query:"padding"` PaddingSpaceCount int `query:"padSpaces"` HumanReadable bool `query:"human"` // contains filtered or unexported fields }
TableRendererParams represents renderer parameters
func NewTableRendererParams ¶
func NewTableRendererParams(paramsString string) (TableRendererParams, error)
NewTableRendererParams Creates parameters structure from url-encoded string respecting some defaults