server

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGRPCServer

func StartGRPCServer(params *GRPCServerParams) (*grpc.Server, error)

StartGRPCServer based on the given parameters

func StartHTTPServer

func StartHTTPServer(params *HTTPServerParams) (*http.Server, error)

StartHTTPServer based on the given parameters

Types

type GRPCServerParams

type GRPCServerParams struct {
	TLSConfig               tlscfg.Options
	HostPort                string
	Handler                 *handler.GRPCHandler
	SamplingProvider        samplingstrategy.Provider
	Logger                  *zap.Logger
	OnError                 func(error)
	MaxReceiveMessageLength int
	MaxConnectionAge        time.Duration
	MaxConnectionAgeGrace   time.Duration

	// Set by the server to indicate the actual host:port of the server.
	HostPortActual string
}

GRPCServerParams to construct a new Jaeger Collector gRPC Server

type HTTPServerParams

type HTTPServerParams struct {
	TLSConfig        tlscfg.Options
	HostPort         string
	Handler          handler.JaegerBatchesHandler
	SamplingProvider samplingstrategy.Provider
	MetricsFactory   metrics.Factory
	HealthCheck      *healthcheck.HealthCheck
	Logger           *zap.Logger

	// ReadTimeout sets the respective parameter of http.Server
	ReadTimeout time.Duration
	// ReadHeaderTimeout sets the respective parameter of http.Server
	ReadHeaderTimeout time.Duration
	// IdleTimeout sets the respective parameter of http.Server
	IdleTimeout time.Duration
}

HTTPServerParams to construct a new Jaeger Collector HTTP Server

Jump to

Keyboard shortcuts

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