nacos

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

NewFactory 创建nacos驱动工厂

func Register

func Register(register eosc.IExtenderDriverRegister)

Register 注册nacos驱动工厂

Types

type AccessConfig

type AccessConfig struct {
	Address []string
	Params  map[string]string
}

AccessConfig 接入地址配置

type Config

type Config struct {
	Name   string       `json:"name"`
	Driver string       `json:"driver"`
	Scheme string       `json:"scheme"`
	Config AccessConfig `json:"config"`
}

Config nacos驱动配置

type Instance

type Instance struct {
	Hosts []struct {
		Valid      bool    `json:"valid"`
		Marked     bool    `json:"marked"`
		InstanceID string  `json:"instanceId"`
		Port       int     `json:"port"`
		IP         string  `json:"ip"`
		Weight     float64 `json:"weight"`
	}
}

Instance nacos 服务实例结构

Jump to

Keyboard shortcuts

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