Documentation ¶
Index ¶
- func FileRecorder(filename string, opts ...FileRecorderOption) 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 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 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 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.