Documentation
¶
Index ¶
- type HTTPListenerV2
- func (h *HTTPListenerV2) AuthenticateIfSet(handler http.HandlerFunc, res http.ResponseWriter, req *http.Request)
- func (h *HTTPListenerV2) Description() string
- func (h *HTTPListenerV2) Gather(_ telegraf.Accumulator) error
- func (h *HTTPListenerV2) SampleConfig() string
- func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (h *HTTPListenerV2) SetParser(parser parsers.Parser)
- func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error
- func (h *HTTPListenerV2) Stop()
- type TimeFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPListenerV2 ¶
type HTTPListenerV2 struct { ServiceAddress string Path string Methods []string ReadTimeout internal.Duration WriteTimeout internal.Duration MaxBodySize internal.Size Port int tlsint.ServerConfig BasicUsername string BasicPassword string TimeFunc parsers.Parser // contains filtered or unexported fields }
func (*HTTPListenerV2) AuthenticateIfSet ¶
func (h *HTTPListenerV2) AuthenticateIfSet(handler http.HandlerFunc, res http.ResponseWriter, req *http.Request)
func (*HTTPListenerV2) Description ¶
func (h *HTTPListenerV2) Description() string
func (*HTTPListenerV2) Gather ¶
func (h *HTTPListenerV2) Gather(_ telegraf.Accumulator) error
func (*HTTPListenerV2) SampleConfig ¶
func (h *HTTPListenerV2) SampleConfig() string
func (*HTTPListenerV2) ServeHTTP ¶
func (h *HTTPListenerV2) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*HTTPListenerV2) SetParser ¶
func (h *HTTPListenerV2) SetParser(parser parsers.Parser)
func (*HTTPListenerV2) Start ¶
func (h *HTTPListenerV2) Start(acc telegraf.Accumulator) error
Start starts the http listener service.
Click to show internal directories.
Click to hide internal directories.