AddPolicy adds a policy within the transaction. The policy is buffered and will be applied when the transaction is committed.
(params ...interface{})
| 48 | // AddPolicy adds a policy within the transaction. |
| 49 | // The policy is buffered and will be applied when the transaction is committed. |
| 50 | func (tx *Transaction) AddPolicy(params ...interface{}) (bool, error) { |
| 51 | return tx.AddNamedPolicy("p", params...) |
| 52 | } |
| 53 | |
| 54 | // buildRuleFromParams converts parameters to a rule slice. |
| 55 | func (tx *Transaction) buildRuleFromParams(params ...interface{}) []string { |
nothing calls this directly
no test coverage detected