v2

package
v1.13.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoverServer

type DiscoverServer struct {
	// contains filtered or unexported fields
}

func NewDiscoverServer

func NewDiscoverServer(options ...Option) *DiscoverServer

func (*DiscoverServer) Discover

Discover 统一发现接口

type Option

type Option func(s *DiscoverServer)

func WithAllowAccess

func WithAllowAccess(f func(method string) bool) Option

func WithEnterRateLimit

func WithEnterRateLimit(f func(ip string, method string) uint32) Option

func WithHealthCheckerServer

func WithHealthCheckerServer(svr *healthcheck.Server) Option

func WithNamingServer

func WithNamingServer(svr service.DiscoverServer) Option

Jump to

Keyboard shortcuts

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