kitex

package
v0.0.0-...-0ff87c8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRemoteConfig

func GetRemoteConfig[T any](config NacosConfig, param *T) error

泛型标识结构体

func NacosServerGroup

func NacosServerGroup(group string) registry.Option

func RegisterCenterConfig

func RegisterCenterConfig(config ClientConfig, ipAndPort map[string]uint64) (naming_client.INamingClient, error)

func ServerBaseInfo

func ServerBaseInfo(serviceName string) server.Option

Types

type ClientConfig

type ClientConfig struct {
	NamespaceId         string
	TimeoutMs           uint64
	NotLoadCacheAtStart bool
	LogDir              string
	CacheDir            string
	LogLevel            string
	Username            string
	Password            string
}

type ClientParam

type ClientParam struct {
	DataId string
	Group  string
}

type NacosConfig

type NacosConfig struct {
	Client ClientConfig
	Server ServerConfig
	Param  ClientParam
}

func DeafultNacosConfig

func DeafultNacosConfig(username, password, namespaceId, ipAddr, scheme string, port uint64, dataId, group string) NacosConfig

type ServerConfig

type ServerConfig struct {
	IpAddr      string
	ContextPath string
	Port        uint64
	Scheme      string
}

Jump to

Keyboard shortcuts

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