Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPWriter ¶
type HTTPWriter struct {
log.LogFilter
log.LogFormatter
log.BatchWriter
URL string // request URL
Method string // http method
Insecure bool
Username string // basic auth username
Password string // basic auth password
ContentType string
Timeout time.Duration
// contains filtered or unexported fields
}
HTTPWriter implements log Writer Interface and batch send log messages to webhook.
func (*HTTPWriter) SetTimeout ¶
func (hw *HTTPWriter) SetTimeout(timeout string) error
SetTimeout set timeout
Click to show internal directories.
Click to hide internal directories.