http

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerHTTP

type ServerHTTP struct {
	// contains filtered or unexported fields
}

ServerHTTP represents the PbGrpc server components satifsying Receiver interface

func NewServer

func NewServer(
	config *confighttp.ServerConfig,
	set *receiver.Settings,
	nextTraces consumer.Traces,
	obsreport *receiverhelper.ObsReport,
	telemetry *telemetry.Telemetry,
) *ServerHTTP

func (*ServerHTTP) HandleRequest

func (s *ServerHTTP) HandleRequest(w http.ResponseWriter, rq *http.Request)

HandleRequest is a handler for http calls

func (*ServerHTTP) Shutdown

func (s *ServerHTTP) Shutdown(ctx context.Context)

Shutdown stops http pb server

func (*ServerHTTP) Start

func (s *ServerHTTP) Start(ctx context.Context, host component.Host) error

Start starts the http pb server

Jump to

Keyboard shortcuts

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