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.
Click to show internal directories.
Click to hide internal directories.