server

package
v1.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHTTPServer

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

StartHTTPServer based on the given parameters

Types

type APIHandler

type APIHandler struct {
	Reloader   []func(cfg *config.Config) error
	ConfigFile string
	// contains filtered or unexported fields
}

func NewAPIHandler

func NewAPIHandler(p *HttpServerParams) *APIHandler

NewAPIHandler returns a new APIHandler

func (*APIHandler) RegisterRoutes

func (aH *APIHandler) RegisterRoutes(router *mux.Router)

func (*APIHandler) Reload

func (aH *APIHandler) Reload(w http.ResponseWriter, r *http.Request)

type HttpServerParams

type HttpServerParams struct {
	HostPort   string
	Logger     *zap.Logger
	Reloader   []func(cfg *config.Config) error
	ConfigFile string
}

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