log

package
v2.3.3-0...-0c682c3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderOption

type BuilderOption func(*FilterChainBuilder)

BuilderOption option constructor

func WithLog

func WithLog(f func(f interface{}, v ...interface{})) BuilderOption

WithLog return option constructor modify log function

func WithprintableContentTypes

func WithprintableContentTypes(types []string) BuilderOption

WithprintableContentTypes return option constructor modify printableContentTypes

type FilterChainBuilder

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

FilterChainBuilder can build a log filter

func NewFilterChainBuilder

func NewFilterChainBuilder(opts ...BuilderOption) *FilterChainBuilder

NewFilterChainBuilder initialize a filterChainBuilder, pass options to customize

func (*FilterChainBuilder) FilterChain

func (builder *FilterChainBuilder) FilterChain(next httplib.Filter) httplib.Filter

FilterChain can print the request after FilterChain processing and response before processsing

Jump to

Keyboard shortcuts

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