AddReactor appends a reactor to the end of the chain.
(verb, resource string, reaction ReactionFunc)
| 96 | |
| 97 | // AddReactor appends a reactor to the end of the chain. |
| 98 | func (c *Fake) AddReactor(verb, resource string, reaction ReactionFunc) { |
| 99 | c.ReactionChain = append(c.ReactionChain, &SimpleReactor{verb, resource, reaction}) |
| 100 | } |
| 101 | |
| 102 | // PrependReactor adds a reactor to the beginning of the chain. |
| 103 | func (c *Fake) PrependReactor(verb, resource string, reaction ReactionFunc) { |
no outgoing calls