redis_discovery

package
v0.2.82 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: LGPL-2.1 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Install   = self.Install
	Uninstall = self.Uninstall
)
View Source
var With _Option

Functions

func NewRegistry

func NewRegistry(settings ...option.Setting[RegistryOptions]) discovery.IRegistry

NewRegistry 创建registry插件,可以配合registry cache将数据缓存本地,提高查询效率

Types

type RegistryOptions

type RegistryOptions struct {
	RedisClient    *redis.Client
	RedisConfig    *redis.Options
	RedisURL       string
	KeyPrefix      string
	WatchChanSize  int
	TTL            time.Duration
	CustomUsername string
	CustomPassword string
	CustomAddress  string
	CustomDB       int
}

RegistryOptions 所有选项

Jump to

Keyboard shortcuts

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