Documentation ¶
Index ¶
- func GetPolaris() *polaris.Polaris
- func Polaris() plugin.Plugin
- type Option
- type PlugPolaris
- func (p *PlugPolaris) ConfPrefix() string
- func (p *PlugPolaris) Config(fileName string, group string) (config.Source, error)
- func (p *PlugPolaris) DependsOn(config.Value) []string
- func (p *PlugPolaris) GrpcRateLimit() middleware.Middleware
- func (p *PlugPolaris) HttpRateLimit() middleware.Middleware
- func (p *PlugPolaris) Load(b config.Value) (plugin.Plugin, error)
- func (p *PlugPolaris) Name() string
- func (p *PlugPolaris) Namespace() string
- func (p *PlugPolaris) NewNodeRouter(name string) selector.NodeFilter
- func (p *PlugPolaris) NewServiceDiscovery() registry.Discovery
- func (p *PlugPolaris) NewServiceRegistry() registry.Registrar
- func (p *PlugPolaris) Unload() error
- func (p *PlugPolaris) Weight() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolaris ¶
func GetPolaris() *polaris.Polaris
Types ¶
type Option ¶
type Option func(h *PlugPolaris)
type PlugPolaris ¶
type PlugPolaris struct {
// contains filtered or unexported fields
}
func GetPlugin ¶
func GetPlugin() *PlugPolaris
func (*PlugPolaris) ConfPrefix ¶
func (p *PlugPolaris) ConfPrefix() string
func (*PlugPolaris) GrpcRateLimit ¶
func (p *PlugPolaris) GrpcRateLimit() middleware.Middleware
func (*PlugPolaris) HttpRateLimit ¶
func (p *PlugPolaris) HttpRateLimit() middleware.Middleware
func (*PlugPolaris) Name ¶
func (p *PlugPolaris) Name() string
func (*PlugPolaris) Namespace ¶
func (p *PlugPolaris) Namespace() string
func (*PlugPolaris) NewNodeRouter ¶
func (p *PlugPolaris) NewNodeRouter(name string) selector.NodeFilter
NewNodeRouter Synchronize Remote Service Routing Strategy
func (*PlugPolaris) NewServiceDiscovery ¶
func (p *PlugPolaris) NewServiceDiscovery() registry.Discovery
NewServiceDiscovery PolarisDiscovery
func (*PlugPolaris) NewServiceRegistry ¶
func (p *PlugPolaris) NewServiceRegistry() registry.Registrar
NewServiceRegistry PolarisRegistry
func (*PlugPolaris) Unload ¶
func (p *PlugPolaris) Unload() error
func (*PlugPolaris) Weight ¶
func (p *PlugPolaris) Weight() int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.