Documentation ¶
Index ¶
- Constants
- func FileRecorder(filename string, opts ...FileRecorderOption) recorder.Recorder
- func HTTPRecorder(url string, opts ...HTTPRecorderOption) 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
- func TCPRecorder(addr string, opts ...TCPRecorderOption) recorder.Recorder
- type FileRecorderOption
- type HTTPRecorderOption
- type RedisRecorderOption
- type TCPRecorderOption
Constants ¶
View Source
const ( RecorderServiceHandlerSerial = "recorder.service.handler.serial" RecorderServiceHandlerTunnel = "recorder.service.handler.tunnel" )
Variables ¶
This section is empty.
Functions ¶
func FileRecorder ¶
func FileRecorder(filename string, opts ...FileRecorderOption) recorder.Recorder
FileRecorder records data to file.
func HTTPRecorder ¶
func HTTPRecorder(url string, opts ...HTTPRecorderOption) recorder.Recorder
HTTPRecorder records data to HTTP service.
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.
func TCPRecorder ¶
func TCPRecorder(addr string, opts ...TCPRecorderOption) recorder.Recorder
TCPRecorder records data to TCP service.
Types ¶
type FileRecorderOption ¶
type FileRecorderOption func(opts *fileRecorderOptions)
func SepRecorderOption ¶
func SepRecorderOption(sep string) FileRecorderOption
type HTTPRecorderOption ¶
type HTTPRecorderOption func(opts *httpRecorderOptions)
func TimeoutHTTPRecorderOption ¶
func TimeoutHTTPRecorderOption(timeout time.Duration) HTTPRecorderOption
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
type TCPRecorderOption ¶
type TCPRecorderOption func(opts *tcpRecorderOptions)
func TimeoutTCPRecorderOption ¶
func TimeoutTCPRecorderOption(timeout time.Duration) TCPRecorderOption
Click to show internal directories.
Click to hide internal directories.