polaris

package
v0.1.4-beta Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPolaris

func GetPolaris() *polaris.Polaris

func Polaris

func Polaris() plugin.Plugin

Types

type Option

type Option func(h *PlugPolaris)

func Config

func Config(c *conf.Polaris) Option

func Weight

func Weight(w int) Option

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) Config

func (p *PlugPolaris) Config(fileName string, group string) (config.Source, error)

func (*PlugPolaris) DependsOn

func (p *PlugPolaris) DependsOn(config.Value) []string

func (*PlugPolaris) GrpcRateLimit

func (p *PlugPolaris) GrpcRateLimit() middleware.Middleware

func (*PlugPolaris) HttpRateLimit

func (p *PlugPolaris) HttpRateLimit() middleware.Middleware

func (*PlugPolaris) Load

func (p *PlugPolaris) Load(b config.Value) (plugin.Plugin, error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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