Documentation
¶
Index ¶
- func Endpoints(service micro.Service, regService *registry.Service) ([]*registry.Endpoint, error)
- func FindByEndpoint(service micro.Service, endpoint interface{}) ([]*registry.Service, error)
- func GoSafe(fn func())
- func ServiceRetryGet(service micro.Service, svcName string, attempts uint) (string, error)
- type ServiceListResult
- type WrappedEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Endpoints ¶
func FindByEndpoint ¶
func GoSafe ¶
func GoSafe(fn func())
GoSafe will run func in goroutine safely, avoid crash from unexpected panic
Types ¶
type ServiceListResult ¶
func ListEndpoints ¶
func ListEndpoints(service micro.Service) (ServiceListResult, error)
Click to show internal directories.
Click to hide internal directories.