Versions in this module Expand all Collapse all v0 v0.7.10 Mar 26, 2024 v0.7.6 Apr 28, 2019 v0.7.5 Mar 10, 2019 v0.7.4 Mar 9, 2019 v0.7.3 Mar 9, 2019 Changes in this version + const ISO8601 + var Ttl uint64 = default_ttl + func SVar(v interface{}) string + func TopOfTheHour() (prev, cur string) + func TraceDbEndQry(s string, v ...interface{}) time.Duration + func TraceDbStartQry(s string) + func TraceFunc(name string, args ...interface{}) + func TraceFuncExit(name string) + type ANote struct + File string + FuncName string + Line string + Txt string + type APathMatch struct + AtDepth int + ErrorReturn string + Match string + MiddlewareName string + Url string + type AnItemType int + const Db + const Fx + const Redis + const Table + const URI + const User + type AvgTime struct + Avg float64 + Max float64 + Min float64 + N int64 + type DBQryHash struct + QryMap map[string]DBTiming + var TimeDbCall DBQryHash + type DBTiming struct + type FuncData struct + File string + FuncName string + Line string + Type string + type OnOffIgnore int + const Ignore + const Off + const On + type QryData struct + BindData []interface{} + File string + FuncName string + Line string + QError string + RvData string + SQL string + Time string + type TraceConfig struct + TraceFuncs map[int]TraceItem + type TraceItem struct + Data1 string + Data2 string + ItemType AnItemType + OnOff OnOffIgnore + type Trx struct + Auth_token string + ClientIp string + Data []common.NameValueFrom + ElapsedTime string + ElapsedTimeMs string + From string + Func []FuncData + HasBeenSaved bool + Header http.Header + IAm string + Key int + Method string + MiddlewareStk []APathMatch + Note []ANote + Protocol string + Qry []QryData + RequestId string + RequestTime string + ResponseBytes int64 + RvBody string + Status int + TableList []string + Uri string + User_id string + Username string + func NewTrx(r *pool.Pool) *Trx + func (this *Trx) AddData(i string, m url.Values, fr map[string]string) + func (this *Trx) AddNote(depth int, note string) + func (this *Trx) At(depth int) + func (this *Trx) ErrorReturn(depth int, err error) + func (this *Trx) GetKeySeqNo() (int64, int) + func (this *Trx) IncrSeqNo() int + func (this *Trx) MatchedPath(depth int, note string) + func (this *Trx) NextNoMatch(depth int, note string) + func (this *Trx) PathMatched(depth int, middlewareName string, path []string, pn int, url string) + func (this *Trx) SaveIt() + func (this *Trx) SavePointOn(x int) bool + func (this *Trx) SetCacheData(sql string, depth int, rvData string, data ...interface{}) + func (this *Trx) SetDataPs(data []common.NameValueFrom) + func (this *Trx) SetFrom(from string) + func (this *Trx) SetFunc(depth int) + func (this *Trx) SetFuncRet(depth int) + func (this *Trx) SetHeader(h http.Header) + func (this *Trx) SetQry(sql string, depth int, data ...interface{}) + func (this *Trx) SetQryDone(qError string, rvData string) + func (this *Trx) SetRvBody(rvBody string) + func (this *Trx) SetSavePoint(s string, on bool) + func (this *Trx) SetTablesUsed(tableList []string) + func (this *Trx) SetTraceDebug(db bool) + func (this *Trx) SetUserInfo(username string, user_id string, auth_token string) + func (this *Trx) StartSeqNo() int + func (this *Trx) TraceDb(name string, qry string, args ...interface{}) + func (this *Trx) TraceDb2(name string, qry string, args ...interface{}) + func (this *Trx) TraceDbData(name string, qry string, args ...interface{}) + func (this *Trx) TraceDbEnd(name string, qry string, n_rows int) + func (this *Trx) TraceDbError(name string, qry string, err error) + func (this *Trx) TraceDbError2(name string, qry string, err error) + func (this *Trx) TraceDbRet(name string, args ...interface{}) + func (this *Trx) TraceDbRetJson(name string, data string) + func (this *Trx) TraceGetConfig() (uint64, bool) + func (this *Trx) TraceInitConfig(r *pool.Pool) + func (this *Trx) TraceSetConfig(p_ttl uint64, p_trace_on bool, p_stdout_on bool) + func (this *Trx) TraceUri(req *http.Request, mm url.Values) + func (this *Trx) TraceUriPs(req *http.Request, ps string) + func (this *Trx) TraceUriRaw(req *http.Request) + func (this *Trx) TraceUriRawEnd(req *http.Request, elapsedTime time.Duration) + func (this *Trx) TraceUriRawEndHijacked(req *http.Request, elapsedTime time.Duration) + func (this *Trx) TrxIdSeen(TrxId, URL, Method string) + func (this *Trx) UpdateDataPs(data []common.NameValueFrom) + func (this *Trx) UriSaveData(clientIP string, runAtTime time.Time, method string, uri string, ...) + func (this *Trx) UriStart(uri string)