{"modulePath":"github.com/cloudtrust/jaeger","version":"v1.3.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\n## Functions\n\n```go\nfunc NewHTTPServer(hostPort string, manager ClientConfigManager, mFactory metrics.Factory) *http.Server\n```\nNewHTTPServer creates a new server that hosts an HTTP/JSON endpoint for clients to query for sampling strategies and baggage restrictions.\n\n## Types\n\n```go\ntype ClientConfigManager interface {\n\tGetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)\n\tGetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error)\n}\n```\nClientConfigManager decides: 1) which sampling strategy a given service should be using 2) which baggage restrictions a given service should be using.\n\n```go\nfunc NewCollectorProxy(svc string, channel *tchannel.Channel, mFactory metrics.Factory) ClientConfigManager\n```\nNewCollectorProxy implements Manager by proxying the requests to collector.\n\n","path":"github.com/cloudtrust/jaeger/cmd/agent/app/httpserver","name":"httpserver","synopsis":"","isRedistributable":true}
