Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
func Log(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error)
Log is the default log function
Types ¶
type DbAdapter ¶
type DbAdapter struct { *tgorm.GormClient Log func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error) }
func NewDbAdapter ¶
func NewDbAdapter(dbClient *tgorm.GormClient) DbAdapter
func (DbAdapter) GetDlrsByFilter ¶
GetDlrsByFilter returns the dlrs that match the given filter.
func (*DbAdapter) SetLogger ¶
func (a *DbAdapter) SetLogger(LoggerFunc func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error))
SetLogger sets logging call-back function
type RedisAdapter ¶
type RedisAdapter struct { *tredis.RedisClient Log func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error) }
func NewRedisAdapter ¶
func NewRedisAdapter(redisClient *tredis.RedisClient) RedisAdapter
func (*RedisAdapter) SetLogger ¶
func (a *RedisAdapter) SetLogger(LoggerFunc func(ctx context.Context, logData *pb_logging.LogData) (*pb_logging.LoggingResult, error))
SetLogger sets logging call-back function
Click to show internal directories.
Click to hide internal directories.