Documentation ¶
Index ¶
- Variables
- func IsErrRecordNotFound(err error) bool
- func IsMongoErrClientDisconnected(err error) bool
- func IsMongoErrEmptySlice(err error) bool
- func IsMongoErrInvalidIndexValue(err error) bool
- func IsMongoErrNilCursor(err error) bool
- func IsMongoErrNilDocument(err error) bool
- func IsMongoErrNilValue(err error) bool
- func IsMongoErrNoDocuments(err error) bool
- func IsMongoErrWrongClient(err error) bool
- func IsNil(err error) bool
- type TracingHook
- func (hook TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (hook TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (hook TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (hook TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
- func (hook TracingHook) StartSpanFromContext(ctx context.Context, cmd redis.Cmder, cmdList []redis.Cmder) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var Conf *configMap
View Source
var Mongo = new(mongoConnector)
Mongo : Global Database Connector
View Source
var Mysql = new(mysqleConnector)
Mysql : Global Database Connector
View Source
var Redis = new(redisConnector)
Redis : Global Redis Connector
Functions ¶
func IsErrRecordNotFound ¶
IsErrRecordNotFound gorm 查询是否为空判断
func IsMongoErrClientDisconnected ¶
IsMongoErrClientDisconnected : ...
func IsMongoErrInvalidIndexValue ¶
IsMongoErrInvalidIndexValue : ...
func IsMongoErrNilDocument ¶
IsMongoErrNilDocument document 为空
Types ¶
type TracingHook ¶
type TracingHook struct {
// contains filtered or unexported fields
}
func NewTracingHook ¶
func NewTracingHook(opt redisOpt) *TracingHook
func (TracingHook) AfterProcess ¶
func (hook TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
AfterProcess 执行后
func (TracingHook) AfterProcessPipeline ¶
func (hook TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
AfterProcessPipeline 后处理管道
func (TracingHook) BeforeProcess ¶
func (hook TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
BeforeProcess 执行前
func (TracingHook) BeforeProcessPipeline ¶
func (hook TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
BeforeProcessPipeline 流水线前
func (TracingHook) StartSpanFromContext ¶
func (hook TracingHook) StartSpanFromContext(ctx context.Context, cmd redis.Cmder, cmdList []redis.Cmder) context.Context
Click to show internal directories.
Click to hide internal directories.