Documentation ¶
Index ¶
- func CreateHeaderContextWithReqId(timeout time.Duration, reqID string) (context.Context, context.CancelFunc)
- func GetLocalHost(probeAddr string) (string, error)
- func NonBlockingStart(configPath string, restart bool) ([]apiserver.APIServer, chan error, context.CancelFunc)
- func Start(configPath string, restart bool)
- type Config
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHeaderContextWithReqId ¶
func CreateHeaderContextWithReqId(timeout time.Duration, reqID string) (context.Context, context.CancelFunc)
CreateHeaderContextWithReqId 创建传输grpc头的valueContext
func NonBlockingStart ¶
func NonBlockingStart(configPath string, restart bool) ([]apiserver.APIServer, chan error, context.CancelFunc)
NonBlockingStart 非阻塞启动
Types ¶
type Config ¶
type Config struct { Logger log.Options Registry Registry `yaml:"registry"` APIServers []apiserver.Config `yaml:"api-servers"` Limit config.Config `yaml:"limit"` Plugin plugin.Config `yaml:"plugin"` }
Config 配置类
type Registry ¶
type Registry struct { Enable bool `yaml:"enable"` PolarisServerAddress string `yaml:"polaris-server-address"` Name string `yaml:"name"` Namespace string `yaml:"namespace"` Host string `yaml:"host"` Token string `yaml:"token"` HealthCheckEnable bool `yaml:"health-check-enable"` }
Registry 自注册配置
Click to show internal directories.
Click to hide internal directories.