Versions in this module Expand all Collapse all v1 v1.1.1 Feb 25, 2021 Changes in this version + const ChildId + const ERROR + const FAIL + const GoCatVersion + const ParentId + const RootId + const SUCCESS + const TypeMQ + const TypeMQTopic + const TypeRedis + const TypeRedisCmd + const TypeRemoteCall + const TypeSql + const TypeSqlOp + const TypeSqlVal + const TypeUrl + const TypeUrlClient + const TypeUrlForward + const TypeUrlMethod + func AddMonitorCollector(collector Collector) + func DebugOn() + func Init(opts *Options) + func IsEnabled() bool + func LogError(err error, args ...string) + func LogErrorWithCategory(err error, category string) + func LogEvent(mtype, name string, args ...string) + func LogMetricForCount(name string, args ...int) + func LogMetricForDuration(name string, duration time.Duration) + func MessageId() string + func NewCompletedTransactionWithDuration(mtype, name string, duration time.Duration) + func NewEvent(mtype, name string) message.Messager + func NewTransaction(mtype, name string) message.Transactor + func SetChildTraceId(tran message.Transactor, sub message.Transactor) + func Shutdown() + type Buf struct + func (b *Buf) WriteInt(i int) (err error) + func (b *Buf) WriteUInt64(i uint64) (err error) + type Collector interface + GetDesc func() string + GetId func() string + GetProperties func() map[string]string + type Config struct + func (config *Config) Init(opts *Options) (err error) + type Logger struct + func (l *Logger) Debug(format string, args ...interface{}) + func (l *Logger) Error(format string, args ...interface{}) + func (l *Logger) Info(format string, args ...interface{}) + func (l *Logger) Warning(format string, args ...interface{}) + type MetricHelper interface + AddTag func(key, val string) MetricHelper + Count func(int) + Duration func(time.Duration) + func NewMetricHelper(name string) MetricHelper + type Options struct + AppId string + HttpPort int + Port int + ServerAddr string + type XMLConfig struct + Name xml.Name + Servers XMLConfigServers + type XMLConfigServer struct + Host string + Port int + type XMLConfigServers struct + Servers []XMLConfigServer