server

package
v0.0.0-...-2a2fe1c Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

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

func StartZipkinServer

func StartZipkinServer(params *ZipkinServerParams) (*http.Server, error)

StartZipkinServer based on the given parameters

Types

type GRPCServerParams

type GRPCServerParams struct {
	TLSConfig               tlscfg.Options
	HostPort                string
	Handler                 *handler.GRPCHandler
	SamplingStore           strategystore.StrategyStore
	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
	SamplingStore  strategystore.StrategyStore
	MetricsFactory metrics.Factory
	HealthCheck    *healthcheck.HealthCheck
	Logger         *zap.Logger
}

HTTPServerParams to construct a new Jaeger Collector HTTP Server

type ZipkinServerParams

type ZipkinServerParams struct {
	TLSConfig      tlscfg.Options
	HostPort       string
	Handler        handler.ZipkinSpansHandler
	AllowedOrigins string
	AllowedHeaders string
	HealthCheck    *healthcheck.HealthCheck
	Logger         *zap.Logger
	MetricsFactory metrics.Factory
}

ZipkinServerParams to construct a new Jaeger Collector Zipkin Server

Jump to

Keyboard shortcuts

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