nacosserver

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtooclName = "service-nacos"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NacosConfig

type NacosConfig struct {
	ListenPort       uint32            `mapstructure:"listenPort"`
	ConnLimit        *connlimit.Config `mapstructure:"connLimit"`
	TLS              *secure.TLSConfig `mapstructure:tls`
	DefaultNamespace string            `mapstructure:defaultNamespace`
}

type NacosServer

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

func (*NacosServer) GetPort

func (n *NacosServer) GetPort() uint32

GetPort API的监听端口

func (*NacosServer) GetProtocol

func (n *NacosServer) GetProtocol() string

GetProtocol API协议名

func (*NacosServer) Initialize

func (n *NacosServer) Initialize(ctx context.Context, option map[string]interface{},
	apiConf map[string]apiserver.APIConfig) error

Initialize API初始化逻辑

func (*NacosServer) Restart

func (n *NacosServer) Restart(option map[string]interface{}, api map[string]apiserver.APIConfig,
	errCh chan error) error

Restart 重启API

func (*NacosServer) Run

func (n *NacosServer) Run(errCh chan error)

Run API服务的主逻辑循环

func (*NacosServer) Stop

func (n *NacosServer) Stop()

Stop 停止API端口监听

Directories

Path Synopsis
v1
v2
pb

Jump to

Keyboard shortcuts

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