httpserver

package
v0.0.0-...-132f1c2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPServer

func NewHTTPServer(hostPort string, manager ClientConfigManager, mFactory metrics.Factory) *http.Server

NewHTTPServer创建一个http服务,用于本地host的微服务获取相关采样策略、Baggage信息携带字段等

Types

type ClientConfigManager

type ClientConfigManager interface {
	GetSamplingStrategy(serviceName string) (*sampling.SamplingStrategyResponse, error)
	GetBaggageRestrictions(serviceName string) ([]*baggage.BaggageRestriction, error)
}

ClientConfigManager interface两个用途: 1) 对于一个服务,它采用的采样策略是怎样的? 2) 对于一个服务,它只能rpc传输哪些数据?

func NewCollectorProxy

func NewCollectorProxy(svc string, channel *tchannel.Channel, mFactory metrics.Factory) ClientConfigManager

NewCollectorProxy方法创建一个ClientConfigManager实例,通过channel获取service的client封装,方便后续的rpc client调用

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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