discovery

package
v0.0.0-...-4cc90de Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryOptions

type DiscoveryOptions struct {
	// Address , registry center host and port ,like 127.0.0.1:8500
	Address string `mapstructure:"address" json:"address,omitempty"`
	// Scheme , like http or https
	Scheme string `mapstructure:"scheme"  json:"scheme,omitempty"`
}

DiscoveryOptions 用于服务发现的注册中心的配置对象

func NewDiscoveryOptions

func NewDiscoveryOptions() *DiscoveryOptions

func (*DiscoveryOptions) AddFlags

func (o *DiscoveryOptions) AddFlags(fs *pflag.FlagSet)

func (*DiscoveryOptions) Validate

func (o *DiscoveryOptions) Validate() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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