Documentation ¶
Index ¶
- func Copy(current []*register.Service) []*register.Service
- func CopyService(service *register.Service) *register.Service
- func Merge(olist []*register.Service, nlist []*register.Service) []*register.Service
- func Remove(old, del []*register.Service) []*register.Service
- func WaitService(ctx context.Context, reg register.Register, name string, min time.Duration, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyService ¶
CopyService make a copy of service
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.
Click to show internal directories.
Click to hide internal directories.