klog

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(x ...interface{})

Error ...

func Error1

func Error1(x ...interface{})

Error1 ..

func Log

func Log(x ...interface{})

Log ...

Types

type HijackLogger

type HijackLogger struct {
	LogWriter
}

HijackLogger ...

func (*HijackLogger) Hijack

func (hl *HijackLogger) Hijack() (net.Conn, *bufio.ReadWriter, error)

Hijack ...

type LogWriter

type LogWriter struct {
	W http.ResponseWriter

	Status int
	// contains filtered or unexported fields
}

LogWriter ...

func (*LogWriter) Header

func (w *LogWriter) Header() http.Header

Header ...

func (*LogWriter) Print

func (w *LogWriter) Print(r *http.Request, tstart time.Time)

Print ...

func (*LogWriter) Write

func (w *LogWriter) Write(data []byte) (int, error)

Write ...

func (*LogWriter) WriteHeader

func (w *LogWriter) WriteHeader(status int)

WriteHeader ...

type RespondLogger

type RespondLogger interface {
	Print(*http.Request, time.Time)
	Header() http.Header
	Write(data []byte) (int, error)
	WriteHeader(status int)
}

RespondLogger ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL