static

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAnonymous

func CreateAnonymous(conf *Config) discovery.IDiscovery

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 创建静态服务发现的驱动工厂

func Register

func Register(register eosc.IExtenderDriverRegister)

Register 注册静态服务发现的驱动工厂

Types

type Config

type Config struct {
	//Name     string            `json:"factoryName"`
	//Driver   string            `json:"driver"`
	//Labels   map[string]string `json:"labels"`
	Scheme   string        `json:"scheme"`
	Health   *HealthConfig `json:"health"`
	HealthOn bool          `json:"health_on"`
}

Config 静态服务发现配置

type HealthConfig

type HealthConfig struct {
	Scheme      string `json:"scheme"`
	Method      string `json:"method"`
	URL         string `json:"url"`
	SuccessCode int    `json:"success_code"`
	Period      int    `json:"period"`
	Timeout     int    `json:"timeout"`
}

HealthConfig 健康检查配置

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node 静态服务发现的节点类型

Jump to

Keyboard shortcuts

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