Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Kind is the kind of Fallback. Kind = constant.HTTPAccessLogFilter )
Variables ¶
This section is empty.
Functions ¶
func WriteToFile ¶
WriteToFile write message to access log file
Types ¶
type AccessLogConfig ¶
type AccessLogConfig struct {
OutPutPath string `yaml:"outPutPath" json:"outPutPath" mapstructure:"outPutPath" default:"console"`
}
access log config, enable default value true, outputpath default value console AccessLogConfig access log will out put into console
type AccessLogData ¶
type AccessLogData struct { AccessLogMsg string AccessLogConfig AccessLogConfig }
AccessLogData access log data
type AccessLogWriter ¶
type AccessLogWriter struct {
AccessLogDataChan chan AccessLogData
}
AccessLogWriter access log chan
func (*AccessLogWriter) Write ¶
func (alw *AccessLogWriter) Write()
Write write log into out put path
func (*AccessLogWriter) Writer ¶
func (alw *AccessLogWriter) Writer(accessLogData AccessLogData)
Writer writer msg into chan
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is http filter instance
func (*Filter) PrepareFilterChain ¶
func (f *Filter) PrepareFilterChain(ctx *http.HttpContext) error
PrepareFilterChain prepare chain when http context init
Click to show internal directories.
Click to hide internal directories.