Documentation ¶
Index ¶
- type ServiceHTTP
- func (s *ServiceHTTP) Collect(ilogtail.Collector) error
- func (s *ServiceHTTP) Description() string
- func (s *ServiceHTTP) Init(context ilogtail.Context) (int, error)
- func (s *ServiceHTTP) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *ServiceHTTP) Start(c ilogtail.Collector) error
- func (s *ServiceHTTP) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceHTTP ¶
type ServiceHTTP struct { Format string Address string ReadTimeoutSec int ShutdownTimeoutSec int MaxBodySize int64 UnlinkUnixSock bool // contains filtered or unexported fields }
ServiceHTTP ...
func (*ServiceHTTP) Collect ¶
func (s *ServiceHTTP) Collect(ilogtail.Collector) error
Collect takes in an accumulator and adds the metrics that the Input gathers. This is called every "interval"
func (*ServiceHTTP) Init ¶
func (s *ServiceHTTP) Init(context ilogtail.Context) (int, error)
Init ...
func (*ServiceHTTP) ServeHTTP ¶
func (s *ServiceHTTP) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*ServiceHTTP) Start ¶
func (s *ServiceHTTP) Start(c ilogtail.Collector) error
Start starts the ServiceInput's service, whatever that may be
func (*ServiceHTTP) Stop ¶
func (s *ServiceHTTP) Stop() error
Stop stops the services and closes any necessary channels and connections
Click to show internal directories.
Click to hide internal directories.