vo

package
v0.0.0-...-7cb662a Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registryer

type Registryer interface {
	PluginName() string
	Init(context.Context, func() error) error
	Register(context.Context, *Service) error
	UnRegister(context.Context, *Service) error
	Get(context.Context, *Service) ([]*Service, error)
	SubscribeService(context.Context, *Service) error
}

plunin interface

type Service

type Service struct {

	//consul init
	ConsulKind              api.ServiceKind
	ConsulID                string
	ConsulName              string
	ConsulTags              []string
	ConsulPort              int
	ConsulAddress           string
	ConsulTaggedAddresses   map[string]api.ServiceAddress
	ConsulEnableTagOverride bool
	ConsulMeta              map[string]string
	ConsulWeights           *api.AgentWeights
	ConsulCheck             *api.AgentServiceCheck
	ConsulChecks            api.AgentServiceChecks
	ConsulProxy             *api.AgentServiceConnectProxyConfig
	ConsulConnect           *api.AgentServiceConnect
	ConsulNamespace         string

	//nacos init
	NacosIp          string
	NacosPort        uint64
	NacosWeight      float64
	NacosEnable      bool
	NacosHealthy     bool
	NacosMetadata    map[string]string
	NacosClusterName string
	NacosServiceName string
	NacosGroupName   string
	NacosEphemeral   bool
}

Jump to

Keyboard shortcuts

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