Documentation
¶
Index ¶
- Constants
- func Hijack(hijackable interface{}) (net.Conn, *bufio.ReadWriter, error)
- func NewRoundTripper(JA3, Setup, UserAgent string, downgrade bool) http.RoundTripper
- func ReadRequest(reader *bufio.Reader, scheme string) (*http.Request, error)
- func RemoveServiceHeaders(req *http.Request, opts []string)
- func StringToSpec(ja3 string, userAgent string, proto []string) (*utls.ClientHelloSpec, error)
- type LogWriter
- type Logger
- func (cl *Logger) Critical(s string, v ...interface{}) error
- func (cl *Logger) Debug(s string, v ...interface{}) error
- func (cl *Logger) Error(s string, v ...interface{}) error
- func (cl *Logger) Info(s string, v ...interface{}) error
- func (cl *Logger) Log(verb int, format string, v ...interface{}) error
- func (cl *Logger) Warning(s string, v ...interface{}) error
Constants ¶
View Source
const ( CRITICAL = 50 ERROR = 40 WARNING = 30 INFO = 20 DEBUG = 10 )
View Source
const MAX_LOG_QLEN = 128
View Source
const QUEUE_SHUTDOWN_TIMEOUT = 500 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
func NewRoundTripper ¶
func NewRoundTripper(JA3, Setup, UserAgent string, downgrade bool) http.RoundTripper
func RemoveServiceHeaders ¶
func StringToSpec ¶
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
func NewLogWriter ¶
Click to show internal directories.
Click to hide internal directories.