Documentation ¶
Index ¶
- type Adapter
- func (l *Adapter) ColumnsDetection(sql, source string)
- func (l *Adapter) Inherit(adapter *Adapter)
- func (l *Adapter) ObjectReconciling(dst, item, parent interface{}, index int)
- func (l *Adapter) ReadTime(viewName string, start, end *time.Time, err error)
- func (l *Adapter) ReadingData(duration time.Duration, sql string, read int, params []interface{}, err error)
- type AdapterIndex
- type Adapters
- type ColumnsDetection
- type Counter
- type CounterAdapter
- type Logger
- type ObjectReconciling
- type ReadTime
- type ReadingData
- type TimeLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
func (*Adapter) ColumnsDetection ¶
func (*Adapter) ObjectReconciling ¶
type AdapterIndex ¶
func (AdapterIndex) Register ¶
func (i AdapterIndex) Register(adapter *Adapter)
type Adapters ¶
type Adapters []*Adapter
func (Adapters) Index ¶
func (a Adapters) Index() AdapterIndex
type ColumnsDetection ¶
type ColumnsDetection func(sql, source string)
type CounterAdapter ¶
type CounterAdapter struct {
// contains filtered or unexported fields
}
func NewCounter ¶
func NewCounter(counter Counter) *CounterAdapter
func (*CounterAdapter) DecrementValue ¶
func (c *CounterAdapter) DecrementValue(value interface{}) int64
func (*CounterAdapter) IncrementValue ¶
func (c *CounterAdapter) IncrementValue(value interface{}) int64
type Logger ¶
type Logger interface { ColumnsDetection() ColumnsDetection ObjectReconciling() ObjectReconciling ReadingData() ReadingData ViewReadTime() ReadTime OverallReadTime() ReadTime }
type ObjectReconciling ¶
type ObjectReconciling func(dst, item, parent interface{}, index int)
type ReadingData ¶
type TimeLogger ¶
type TimeLogger struct {
// contains filtered or unexported fields
}
func NewTimeLogger ¶
func NewTimeLogger(view, global time.Duration) *TimeLogger
func (*TimeLogger) ColumnsDetection ¶
func (t *TimeLogger) ColumnsDetection() ColumnsDetection
func (*TimeLogger) ObjectReconciling ¶
func (t *TimeLogger) ObjectReconciling() ObjectReconciling
func (*TimeLogger) OverallReadTime ¶
func (t *TimeLogger) OverallReadTime() ReadTime
func (*TimeLogger) ReadingData ¶
func (t *TimeLogger) ReadingData() ReadingData
func (*TimeLogger) ViewReadTime ¶
func (t *TimeLogger) ViewReadTime() ReadTime
Click to show internal directories.
Click to hide internal directories.