Documentation ¶
Index ¶
- func Endpoints(service micro.Service, regService *registry.Service) ([]*registry.Endpoint, error)
- func FindByEndpoint(service micro.Service, endpoint interface{}) ([]*registry.Service, error)
- func GetEnvDefault(key, defaultValue string) string
- func GoSafe(fn func())
- func MergeFlag(flags []cli.Flag, flag cli.Flag) []cli.Flag
- func ReflectFunctionName(i interface{}) string
- 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
func MergeFlag ¶ added in v0.3.0
func MergeFlag(flags []cli.Flag, flag cli.Flag) []cli.Flag
Types ¶
type ServiceListResult ¶
func ListEndpoints ¶
func ListEndpoints(service micro.Service) (ServiceListResult, error)
Click to show internal directories.
Click to hide internal directories.