Documentation ¶
Overview ¶
Package restrix is a REST Layer resource storage wrapper to add hystrix support to the underlaying storage handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
Wrap wraps a REST Layer storage handler to add hystrix support to all handler's methods.
Hystrix wraps each storage handlers into an hystrix command. One hystrix command is created per backend actions with the format <name>.<Action>.
Actions are Find, Insert, Update, Delete, Clear and MultiGet for handlers implementing MultiGetter interface.
You must configure hystrix for each command you want to control and start the stream handler. See https://godoc.org/github.com/afex/hystrix-go/hystrix for more info and examples/hystrix/main.go for a usage example.
Types ¶
This section is empty.