Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiWrapper ¶
type ApiWrapper struct { Resp interface{} `json:"response"` Cols []Column `json:"columns"` ColWrappers []ColumnWrapper `json:"colWrappers"` Error string `json:"error"` IsTable bool `json:"isTable"` Version float64 `json:"version"` }
func MakeApiWrapper ¶
func MakeApiWrapper(r interface{}, c []string, ca []string, cm map[string]map[string]interface{}, err string, isTable bool) ApiWrapper
wraps the given interface r into a returned Wrapper prepped for encoding to stream
type Column ¶
type ColumnWrapper ¶
type ColumnWrapper struct { Field string `json:"field"` DisplayName string `json:"displayName"` ColumnFilter bool `json:"columnFilter"` }
func MakeColumnWrappers ¶
func MakeColumnWrappers(columns []string) []ColumnWrapper
Click to show internal directories.
Click to hide internal directories.