afex / hystrix-go

Netflix's Hystrix latency and fault tolerance library, for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make runFunc and fallbackFunc exported types

tamccall opened this issue · comments

Currently running into an issue where I want to have a run function for the hystrix command to be returned from another function so I can use it multiple times within the package. I create a named type type fooFunc func() error to supply to the hystrix Do and Go commands, but my program will not compile complaining cannot use f (type fooFunc) as type hystrix.runFunc in argument to hystrix.Do.
If runFuc were exported I would be able to use it as a return argument in my package and reuse my functions as necessary.