accesslog

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLog

type AccessLog struct {
	// contains filtered or unexported fields
}

AccessLog :

func New

func New(logDir string, logRotate int64, logRotateTime int64) (*AccessLog, error)

New :

func (*AccessLog) WrapHandleFunc

func (al *AccessLog) WrapHandleFunc(h http.Handler) http.Handler

WrapHandleFunc :

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer :

func WrapWriter

func WrapWriter(w http.ResponseWriter) *Writer

WrapWriter :

func (*Writer) GetCode

func (w *Writer) GetCode() int

GetCode :

func (*Writer) GetSize

func (w *Writer) GetSize() int

GetSize :

func (*Writer) Header

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

Header :

func (*Writer) Write

func (w *Writer) Write(b []byte) (int, error)

Write :

func (*Writer) WriteHeader

func (w *Writer) WriteHeader(statusCode int)

WriteHeader :

Jump to

Keyboard shortcuts

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