util

package
v0.0.0-...-82b0641 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

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

Copy makes a copy of services

func CopyService

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

CopyService make a copy of service

func HostPort

func HostPort(addr string, port interface{}) string

HostPort format addr and port suitable for dial

func Merge

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

Merge merges two lists of services and returns a new copy

func Remove

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

Remove removes services and returns a new copy

Types

This section is empty.

Jump to

Keyboard shortcuts

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