nacos_server

package
v0.0.0-...-d14e12a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NacosServer

type NacosServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewNacosServer

func NewNacosServer(serverList []constant.ServerConfig, clientCfg constant.ClientConfig, httpAgent http_agent.IHttpAgent, timeoutMs uint64, endpoint string) (NacosServer, error)

func (*NacosServer) GetServerList

func (server *NacosServer) GetServerList() []constant.ServerConfig

func (*NacosServer) ReqApi

func (server *NacosServer) ReqApi(api string, params map[string]string, method string) (string, error)

func (*NacosServer) ReqConfigApi

func (server *NacosServer) ReqConfigApi(api string, params map[string]string, headers map[string]string, method string, timeoutMS uint64) (string, error)

Jump to

Keyboard shortcuts

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