dubbo

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDubbo

func InitDubbo(services Services)

func InitDubbo2 added in v0.1.13

func InitDubbo2(services Services)

func NewCustomLoadBalance

func NewCustomLoadBalance() loadbalance.LoadBalance

func NewTraceIdFilter

func NewTraceIdFilter() filter.Filter

Types

type ClusterWeightedRandomRobinLoadBalance

type ClusterWeightedRandomRobinLoadBalance struct {
}

ClusterWeightedRandomRobinLoadBalance 基于按集群顺序优先的加权随机负载均衡策略

func (ClusterWeightedRandomRobinLoadBalance) Select

type Service

type Service struct {
	Name          string
	InterfaceName string
	Interface     interface{}
	Weight        int
}

type Services

type Services struct {
	Consumer []Service
	Provider []Service
}

Jump to

Keyboard shortcuts

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