register

package
v3.10.97 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(current []*register.Service) []*register.Service

Copy makes a copy of services

func CopyService

func CopyService(service *register.Service) *register.Service

CopyService make a copy of service

func Merge

func Merge(olist []*register.Service, nlist []*register.Service) []*register.Service

Merge merges two lists of services and returns a new copy

func Remove

func Remove(old, del []*register.Service) []*register.Service

Remove removes services and returns a new copy

func WaitService added in v3.9.3

func WaitService(ctx context.Context, reg register.Register, name string, min time.Duration, max time.Duration, timeout time.Duration, opts ...register.LookupOption) error

WaitService using register wait for service to appear with min/max interval for check and optional timeout. Timeout can be 0 to wait infinitive.

Types

This section is empty.

Jump to

Keyboard shortcuts

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