SetPlugins sets the plugin used for authorization
(names []string)
| 33 | |
| 34 | // SetPlugins sets the plugin used for authorization |
| 35 | func (m *Middleware) SetPlugins(names []string) { |
| 36 | m.mu.Lock() |
| 37 | m.plugins = newPlugins(names) |
| 38 | m.mu.Unlock() |
| 39 | } |
| 40 | |
| 41 | // RemovePlugin removes a single plugin from this authz middleware chain |
| 42 | func (m *Middleware) RemovePlugin(name string) { |