Documentation ¶
Index ¶
- type Adapter
- func (l *Adapter) ColumnsDetection(sql, source string)
- func (l *Adapter) Inherit(adapter *Adapter)
- func (l *Adapter) Log(message string, args ...interface{})
- func (l *Adapter) LogDatabaseErr(SQL string, err error, args ...interface{})
- 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 Log
- 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) LogDatabaseErr ¶ added in v0.2.7
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) Counter ¶ added in v0.8.0
func (c *CounterAdapter) Counter() Counter
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 Log() Log }
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) Log ¶ added in v0.2.7
func (t *TimeLogger) Log() Log
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.