httpserver

package
v1.0.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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) Description

func (s *ServiceHTTP) Description() string

Description ...

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL