Documentation ¶
Index ¶
- func FileRecorder(filename string, opts ...FileRecorderOption) recorder.Recorder
- func NewPluginRecorder(opts ...PluginOption) recorder.Recorder
- func RedisListRecorder(addr string, opts ...RedisRecorderOption) recorder.Recorder
- func RedisSetRecorder(addr string, opts ...RedisRecorderOption) recorder.Recorder
- func RedisSortedSetRecorder(addr string, opts ...RedisRecorderOption) recorder.Recorder
- type FileRecorderOption
- type PluginOption
- type RedisRecorderOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileRecorder ¶
func FileRecorder(filename string, opts ...FileRecorderOption) recorder.Recorder
FileRecorder records data to file.
func NewPluginRecorder ¶
func NewPluginRecorder(opts ...PluginOption) recorder.Recorder
NewPluginRecorder creates a plugin recorder.
func RedisListRecorder ¶
func RedisListRecorder(addr string, opts ...RedisRecorderOption) recorder.Recorder
RedisListRecorder records data to a redis list.
func RedisSetRecorder ¶
func RedisSetRecorder(addr string, opts ...RedisRecorderOption) recorder.Recorder
RedisSetRecorder records data to a redis set.
func RedisSortedSetRecorder ¶
func RedisSortedSetRecorder(addr string, opts ...RedisRecorderOption) recorder.Recorder
RedisSortedSetRecorder records data to a redis sorted set.
Types ¶
type FileRecorderOption ¶
type FileRecorderOption func(opts *fileRecorderOptions)
func SepRecorderOption ¶
func SepRecorderOption(sep string) FileRecorderOption
type PluginOption ¶
type PluginOption func(opts *pluginOptions)
func LoggerOption ¶
func LoggerOption(logger logger.Logger) PluginOption
func PluginConnOption ¶
func PluginConnOption(c *grpc.ClientConn) PluginOption
type RedisRecorderOption ¶
type RedisRecorderOption func(opts *redisRecorderOptions)
func DBRedisRecorderOption ¶
func DBRedisRecorderOption(db int) RedisRecorderOption
func KeyRedisRecorderOption ¶
func KeyRedisRecorderOption(key string) RedisRecorderOption
func PasswordRedisRecorderOption ¶
func PasswordRedisRecorderOption(password string) RedisRecorderOption
Click to show internal directories.
Click to hide internal directories.