mod

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAccessLog

func HandleAccessLog(opt *conf.ServerAccessLog, next http.HandlerFunc) http.HandlerFunc

func HandlePProf

func HandlePProf(c *conf.ServerPProf, r *http.ServeMux)

func WithNormalFields

func WithNormalFields(req *http.Request, resp *xhttp.ResponseRecorder) []byte

Types

type FieldBuffer

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

func NewFieldBuffer

func NewFieldBuffer(sep byte) *FieldBuffer

func (*FieldBuffer) Append

func (b *FieldBuffer) Append(s string)

Append normal string append to buffer

func (*FieldBuffer) Bytes

func (b *FieldBuffer) Bytes() []byte

Bytes return a slice of length b.Len() holding the unread portion of the buffer.

func (*FieldBuffer) FAppend

func (b *FieldBuffer) FAppend(s string)

FAppend replace space to + and append to buffer

func (*FieldBuffer) String

func (b *FieldBuffer) String() string

String returns the contents of buffer.

Jump to

Keyboard shortcuts

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