Versions in this module Expand all Collapse all v1 v1.1.1 Nov 25, 2024 v0 v0.2.21 Nov 25, 2024 Changes in this version + const RecorderServiceHandler + const RecorderServiceHandlerSerial + const RecorderServiceHandlerTunnel + 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 DNSRecorderObject struct + Answer string + Cached bool + Class string + ID int + Name string + Question string + Type string + type FileRecorderOption func(opts *fileRecorderOptions) + func SepRecorderOption(sep string) FileRecorderOption + type HTTPRecorderObject struct + Host string + Method string + Proto string + Request HTTPRequestRecorderObject + Response HTTPResponseRecorderObject + Scheme string + StatusCode int + URI string + type HTTPRecorderOption func(opts *httpRecorderOptions) + func HeaderHTTPRecorderOption(header http.Header) HTTPRecorderOption + func TimeoutHTTPRecorderOption(timeout time.Duration) HTTPRecorderOption + type HTTPRequestRecorderObject struct + Body []byte + ContentLength int64 + Header http.Header + type HTTPResponseRecorderObject struct + Body []byte + ContentLength int64 + Header http.Header + type HandlerRecorderObject struct + ClientID string + ClientIP string + DNS *DNSRecorderObject + Dst string + Duration time.Duration + Err string + HTTP *HTTPRecorderObject + Host string + InputBytes uint64 + LocalAddr string + Network string + Node string + OutputBytes uint64 + Proto string + Redirect string + RemoteAddr string + Route string + SID string + Service string + TLS *TLSRecorderObject + Time time.Time + Websocket *WebsocketRecorderObject + func (p *HandlerRecorderObject) Record(ctx context.Context, r recorder.Recorder) error + type RedisRecorderOption func(opts *redisRecorderOptions) + func DBRedisRecorderOption(db int) RedisRecorderOption + func KeyRedisRecorderOption(key string) RedisRecorderOption + func PasswordRedisRecorderOption(password string) RedisRecorderOption + func UsernameRedisRecorderOption(username string) RedisRecorderOption + type TCPRecorderOption func(opts *tcpRecorderOptions) + func LogTCPRecorderOption(log logger.Logger) TCPRecorderOption + func TimeoutTCPRecorderOption(timeout time.Duration) TCPRecorderOption + type TLSRecorderObject struct + CipherSuite string + ClientHello string + CompressionMethod uint8 + Proto string + ServerHello string + ServerName string + Version string + type WebsocketRecorderObject struct + Fin bool + From string + Length int64 + MaskKey uint32 + Masked bool + OpCode int + Payload []byte + Rsv1 bool + Rsv2 bool + Rsv3 bool