Documentation ¶
Index ¶
- Constants
- func Debugf(fmt string, args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func InitPkgLogger()
- func Printf(fmt string, args ...interface{})
- type Copier
- type HAProxyLogRecord
- func (r *HAProxyLogRecord) AddResponseHeader(hdr, val string)
- func (r *HAProxyLogRecord) Copy(src io.Reader) (err error)
- func (r *HAProxyLogRecord) CopyHeaders(hdrs http.Header)
- func (r *HAProxyLogRecord) Error(error string, code int)
- func (r *HAProxyLogRecord) GetResponseHeaders() http.Header
- func (r *HAProxyLogRecord) GetResponseStatusCode() int
- func (r *HAProxyLogRecord) Log()
- func (r *HAProxyLogRecord) PoolUpdateRecord(name string, count uint32, beQueue uint64, pTime time.Time)
- func (r *HAProxyLogRecord) ServerUpdateRecord(name string, sQueue uint64, sConn uint32, sTime time.Time)
- func (r *HAProxyLogRecord) Terminate(termState string)
- func (r *HAProxyLogRecord) UpdateTr(resStartTime, resRetTime time.Time)
- func (r *HAProxyLogRecord) Write(p []byte) (int, error)
- func (r *HAProxyLogRecord) WriteHeader(code int)
- type Logger
Constants ¶
View Source
const ( HAProxyFmtStr = "haproxy[%d]: %s:%s [%s] %s %s/%s %d/%d/%d/%d/%d %d %d %s %s %s %d/%d/%d/%d/%d %d/%d {%s} {%s} \"%s\"\n" BadGatewayMsg = "Bad Gateway" GatewayTimeoutMsg = "Gateway Timeout" )
Variables ¶
This section is empty.
Functions ¶
func InitPkgLogger ¶
func InitPkgLogger()
Types ¶
type HAProxyLogRecord ¶
type HAProxyLogRecord struct { http.ResponseWriter *http.Request // contains filtered or unexported fields }
func NewHAProxyLogRecord ¶
func NewHAProxyLogRecord(w http.ResponseWriter, r *http.Request, frontendPort string, feConn uint32, acceptDate time.Time) HAProxyLogRecord
func NewShallowHAProxyLogRecord ¶
func NewShallowHAProxyLogRecord(out io.Writer, w http.ResponseWriter, r *http.Request) *HAProxyLogRecord
func (*HAProxyLogRecord) AddResponseHeader ¶
func (r *HAProxyLogRecord) AddResponseHeader(hdr, val string)
func (*HAProxyLogRecord) CopyHeaders ¶
func (r *HAProxyLogRecord) CopyHeaders(hdrs http.Header)
func (*HAProxyLogRecord) Error ¶
func (r *HAProxyLogRecord) Error(error string, code int)
Responds to the specified request with the provided error.
func (*HAProxyLogRecord) GetResponseHeaders ¶
func (r *HAProxyLogRecord) GetResponseHeaders() http.Header
func (*HAProxyLogRecord) GetResponseStatusCode ¶
func (r *HAProxyLogRecord) GetResponseStatusCode() int
func (*HAProxyLogRecord) Log ¶
func (r *HAProxyLogRecord) Log()
func (*HAProxyLogRecord) PoolUpdateRecord ¶
func (*HAProxyLogRecord) ServerUpdateRecord ¶
func (*HAProxyLogRecord) Terminate ¶
func (r *HAProxyLogRecord) Terminate(termState string)
Set's the termination state and log's the request
func (*HAProxyLogRecord) UpdateTr ¶
func (r *HAProxyLogRecord) UpdateTr(resStartTime, resRetTime time.Time)
func (*HAProxyLogRecord) WriteHeader ¶
func (r *HAProxyLogRecord) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.