msa

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigInfo

type ConfigInfo struct {
	Id    string
	Group string
}

type NACOS

type NACOS struct {
	Host         string
	Namespace    string
	RegisterInfo RegisterInfo
	ConfigInfo   ConfigInfo
	ClientConfig constant.ClientConfig
	ServerConfig []constant.ServerConfig
}

func NewNACOS

func NewNACOS(host string, namespace string) *NACOS

func (NACOS) GetCloudSetting

func (nacos NACOS) GetCloudSetting(info ConfigInfo) (string, error)

func (NACOS) Register

func (nacos NACOS) Register(info RegisterInfo) (bool, error)

type RegisterInfo

type RegisterInfo struct {
	Address  string
	Port     uint64
	Name     string
	Weight   int
	Metadata map[string]string
}

Jump to

Keyboard shortcuts

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