Documentation
¶
Index ¶
- type Adapter
- func (l *Adapter) ColumnsDetection(sql, source string)
- func (l *Adapter) Inherit(adapter *Adapter)
- func (l *Adapter) LogDatabaseErr(SQL string, err error)
- 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 Printer
- func (p *Printer) Discover(aFunc interface{}) (func(operands []*op.Operand, state *est.State) (interface{}, error), ...)
- func (p *Printer) Fatal(format string, args ...interface{}) (string, error)
- func (p *Printer) Flush()
- func (p *Printer) Log(format string, args ...interface{}) string
- func (p *Printer) Printf(format string, args ...interface{}) string
- func (p *Printer) Println(args ...interface{}) string
- func (p *Printer) Sprintf(format string, args ...interface{}) string
- 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) 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 Printer ¶ added in v0.2.11
type Printer struct {
// contains filtered or unexported fields
}
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.