handlerNames returns the names of all handlers in the chain.
()
| 735 | |
| 736 | // handlerNames returns the names of all handlers in the chain. |
| 737 | func (p *Proxy) handlerNames() []string { |
| 738 | var names []string |
| 739 | for _, h := range p.chain.Load().Handlers() { |
| 740 | names = append(names, h.Name()) |
| 741 | } |
| 742 | return names |
| 743 | } |
| 744 | |
| 745 | // SessionCount returns the number of active sessions. |
| 746 | // O(1) using atomic counter instead of O(n) iteration. |