Documentation ¶
Index ¶
- Constants
- func TableWrite(v *View, file io.Writer)
- type AggregatedValue
- type AggregatedViewData
- func (v *AggregatedViewData) AVG(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) COUNT(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) CallUpdateValue(value interface{}) (interface{}, error)
- func (v *AggregatedViewData) Fetch(key string) interface{}
- func (v *AggregatedViewData) FetchAll() map[string]interface{}
- func (v *AggregatedViewData) KeyArray() []kv
- func (v *AggregatedViewData) Length() int
- func (v *AggregatedViewData) MAX(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) MIN(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) RATE(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) SESSION(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) SUM(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) SetAggregatedValue(newData interface{}, groupByNameArray []string) (interface{}, error)
- func (v *AggregatedViewData) URLIFY(newData interface{}, groupByName []string) (interface{}, error)
- func (v *AggregatedViewData) UpdateModifier(mod string) error
- func (v *AggregatedViewData) Value() interface{}
- type AnalyticFunc
- type AndCondition
- type Conditioner
- type Field
- type Operator
- type OrCondition
- type OrderBy
- type ParentCondition
- type SimpleCondition
- type SimpleViewData
- func (v *SimpleViewData) CallUpdateValue(value interface{}) (interface{}, error)
- func (v *SimpleViewData) Fetch(key string) interface{}
- func (v *SimpleViewData) Field() *Field
- func (v *SimpleViewData) Length() int
- func (v *SimpleViewData) Modifier() string
- func (v *SimpleViewData) Name() string
- func (v *SimpleViewData) SelectedField() bool
- func (v *SimpleViewData) SetName(name string)
- func (v *SimpleViewData) SetParams(params []interface{})
- func (v *SimpleViewData) SetValue(value interface{}) (interface{}, error)
- func (v *SimpleViewData) UpdateModifier(mod string) error
- func (v *SimpleViewData) Value() interface{}
- func (v *SimpleViewData) VarType() fieldType
- type Stream
- type Table
- type TableRegex
- type TableSimple
- func (t *TableSimple) AddField(f *Field) error
- func (t *TableSimple) AddRow(data interface{}) error
- func (t *TableSimple) Field(name string) *Field
- func (t *TableSimple) Fields() []*Field
- func (t *TableSimple) Lock()
- func (t *TableSimple) Name() string
- func (t *TableSimple) RowSeparator() string
- func (t *TableSimple) SetName(name string)
- func (t *TableSimple) SetRowSeparator(sep string)
- func (t *TableSimple) SetTypeInstance(key string, channel chan map[string]string)
- func (t *TableSimple) TypeInstance(key string) chan map[string]string
- func (t *TableSimple) Unlock()
- type View
- func (v *View) AddError(err error)
- func (v *View) AddOrderBy(orderByField ViewData, direction string)
- func (v *View) AddTable(t Table)
- func (v *View) AddViewData(vd ViewData)
- func (v *View) DatetimeViewData(idx int, keys []string) []time.Time
- func (v *View) FetchAllRows() [][]string
- func (v *View) IntViewData(idx int, keys []string) []int
- func (v *View) Lock() *sync.Mutex
- func (v *View) Name() string
- func (v *View) OrderedKeys() []string
- func (v *View) PrintView()
- func (v *View) SetCondition(cond Conditioner)
- func (v *View) SetGroupBy(groupByFields []ViewData)
- func (v *View) SetLimit(limit int)
- func (v *View) StringViewData(idx int, keys []string) []string
- func (v *View) UpdateView()
- func (v *View) ViewData(name string) ViewData
- func (v *View) ViewDataByFieldName(name string) []ViewData
- func (v *View) ViewDataByName(name string) []ViewData
- func (v *View) ViewDatas() []ViewData
- type ViewData
Constants ¶
View Source
const ( VARCHAR fieldType = "varchar" INTEGER fieldType = "integer" DATETIME fieldType = "datetime" )
Variables ¶
This section is empty.
Functions ¶
func TableWrite ¶
Types ¶
type AggregatedValue ¶
type AggregatedValue struct {
// contains filtered or unexported fields
}
type AggregatedViewData ¶
type AggregatedViewData struct {
SimpleViewData
}
func (*AggregatedViewData) AVG ¶
func (v *AggregatedViewData) AVG(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) COUNT ¶
func (v *AggregatedViewData) COUNT(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) CallUpdateValue ¶
func (v *AggregatedViewData) CallUpdateValue(value interface{}) (interface{}, error)
func (*AggregatedViewData) Fetch ¶
func (v *AggregatedViewData) Fetch(key string) interface{}
func (*AggregatedViewData) FetchAll ¶
func (v *AggregatedViewData) FetchAll() map[string]interface{}
func (*AggregatedViewData) KeyArray ¶
func (v *AggregatedViewData) KeyArray() []kv
func (*AggregatedViewData) Length ¶
func (v *AggregatedViewData) Length() int
func (*AggregatedViewData) MAX ¶
func (v *AggregatedViewData) MAX(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) MIN ¶
func (v *AggregatedViewData) MIN(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) RATE ¶
func (v *AggregatedViewData) RATE(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) SESSION ¶
func (v *AggregatedViewData) SESSION(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) SUM ¶
func (v *AggregatedViewData) SUM(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) SetAggregatedValue ¶
func (v *AggregatedViewData) SetAggregatedValue(newData interface{}, groupByNameArray []string) (interface{}, error)
func (*AggregatedViewData) URLIFY ¶
func (v *AggregatedViewData) URLIFY(newData interface{}, groupByName []string) (interface{}, error)
func (*AggregatedViewData) UpdateModifier ¶
func (v *AggregatedViewData) UpdateModifier(mod string) error
func (*AggregatedViewData) Value ¶
func (v *AggregatedViewData) Value() interface{}
type AnalyticFunc ¶
type AnalyticFunc interface {
Value() int
}
type AndCondition ¶
type AndCondition struct { Conditioner // contains filtered or unexported fields }
type Conditioner ¶
type OrCondition ¶
type OrCondition struct { Conditioner // contains filtered or unexported fields }
type ParentCondition ¶
type ParentCondition struct { Conditioner // contains filtered or unexported fields }
type SimpleCondition ¶
type SimpleCondition struct { Conditioner // contains filtered or unexported fields }
type SimpleViewData ¶
type SimpleViewData struct { ViewData // contains filtered or unexported fields }
func (*SimpleViewData) CallUpdateValue ¶
func (v *SimpleViewData) CallUpdateValue(value interface{}) (interface{}, error)
func (*SimpleViewData) Fetch ¶
func (v *SimpleViewData) Fetch(key string) interface{}
func (*SimpleViewData) Field ¶
func (v *SimpleViewData) Field() *Field
func (*SimpleViewData) Length ¶
func (v *SimpleViewData) Length() int
func (*SimpleViewData) Modifier ¶
func (v *SimpleViewData) Modifier() string
func (*SimpleViewData) Name ¶
func (v *SimpleViewData) Name() string
func (*SimpleViewData) SelectedField ¶
func (v *SimpleViewData) SelectedField() bool
func (*SimpleViewData) SetName ¶
func (v *SimpleViewData) SetName(name string)
func (*SimpleViewData) SetParams ¶
func (v *SimpleViewData) SetParams(params []interface{})
func (*SimpleViewData) SetValue ¶
func (v *SimpleViewData) SetValue(value interface{}) (interface{}, error)
func (*SimpleViewData) UpdateModifier ¶
func (v *SimpleViewData) UpdateModifier(mod string) error
func (*SimpleViewData) Value ¶
func (v *SimpleViewData) Value() interface{}
func (*SimpleViewData) VarType ¶
func (v *SimpleViewData) VarType() fieldType
type Table ¶
type Table interface { AddRow(interface{}) error SetRowSeparator(string) RowSeparator() string AddField(*Field) error Fields() []*Field Field(name string) *Field Name() string SetName(string) SetTypeInstance(string, chan map[string]string) TypeInstance(string) chan map[string]string Lock() Unlock() }
type TableRegex ¶
type TableRegex struct { TableSimple // contains filtered or unexported fields }
func CreateTableRegex ¶
func CreateTableRegex(name string) *TableRegex
func (*TableRegex) AddRow ¶
func (t *TableRegex) AddRow(data interface{}) error
type TableSimple ¶
type TableSimple struct { Table // contains filtered or unexported fields }
func CreateTable ¶
func CreateTable(name string) *TableSimple
func (*TableSimple) AddField ¶
func (t *TableSimple) AddField(f *Field) error
func (*TableSimple) AddRow ¶
func (t *TableSimple) AddRow(data interface{}) error
AddRow TODO: Implement some simple data push or keeper
func (*TableSimple) Field ¶
func (t *TableSimple) Field(name string) *Field
func (*TableSimple) Fields ¶
func (t *TableSimple) Fields() []*Field
func (*TableSimple) Lock ¶
func (t *TableSimple) Lock()
func (*TableSimple) Name ¶
func (t *TableSimple) Name() string
func (*TableSimple) RowSeparator ¶
func (t *TableSimple) RowSeparator() string
func (*TableSimple) SetName ¶
func (t *TableSimple) SetName(name string)
func (*TableSimple) SetRowSeparator ¶
func (t *TableSimple) SetRowSeparator(sep string)
func (*TableSimple) SetTypeInstance ¶
func (t *TableSimple) SetTypeInstance(key string, channel chan map[string]string)
func (*TableSimple) TypeInstance ¶
func (t *TableSimple) TypeInstance(key string) chan map[string]string
func (*TableSimple) Unlock ¶
func (t *TableSimple) Unlock()
type View ¶
type View struct {
// contains filtered or unexported fields
}
func CreateView ¶
func (*View) AddOrderBy ¶
func (*View) AddViewData ¶
func (*View) FetchAllRows ¶
func (*View) OrderedKeys ¶
func (*View) SetCondition ¶
func (v *View) SetCondition(cond Conditioner)
func (*View) SetGroupBy ¶
func (*View) UpdateView ¶
func (v *View) UpdateView()
func (*View) ViewDataByFieldName ¶
func (*View) ViewDataByName ¶
type ViewData ¶
type ViewData interface { UpdateModifier(mod string) error Modifier() string Value() interface{} SetValue(value interface{}) (interface{}, error) Name() string SetName(string) Field() *Field CallUpdateValue(value interface{}) (interface{}, error) Length() int Fetch(key string) interface{} VarType() fieldType KeyArray() []kv SelectedField() bool SetParams(params []interface{}) }
Click to show internal directories.
Click to hide internal directories.